diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2018-11-19 17:46:13 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2018-11-19 17:48:17 +0300 |
commit | 6ffb0a0ee77e6695bf7e8b1ad5c9e1b9d9adbcb5 (patch) | |
tree | 6a1beac362a48e72f754297ae8722fb2f1885706 /source/blender/draw | |
parent | ee44dd1b2bcff6bbd99084a012a40fb4a7100b2c (diff) |
DRW: Make profiling more precise on certain drivers.
This makes the whole rendering slower (because of sync point) but the
numbers displayed by the draw manager profiler is more precise on some
buggy drivers. They seems to issue the query before the last one ends.
Diffstat (limited to 'source/blender/draw')
-rw-r--r-- | source/blender/draw/intern/draw_manager_profiling.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_manager_profiling.c b/source/blender/draw/intern/draw_manager_profiling.c index 3900117327e..7b5ea4445ce 100644 --- a/source/blender/draw/intern/draw_manager_profiling.c +++ b/source/blender/draw/intern/draw_manager_profiling.c @@ -126,6 +126,7 @@ static void drw_stats_timer_start_ex(const char *name, const bool is_query) glGenQueries(1, timer->query); } + glFinish(); /* Issue query for the next frame */ glBeginQuery(GL_TIME_ELAPSED, timer->query[0]); DTP.is_querying = true; |