Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2018-11-19 17:46:13 +0300
committerClément Foucault <foucault.clem@gmail.com>2018-11-19 17:48:17 +0300
commit6ffb0a0ee77e6695bf7e8b1ad5c9e1b9d9adbcb5 (patch)
tree6a1beac362a48e72f754297ae8722fb2f1885706 /source/blender/draw/intern
parentee44dd1b2bcff6bbd99084a012a40fb4a7100b2c (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/intern')
-rw-r--r--source/blender/draw/intern/draw_manager_profiling.c1
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;