[Bf-blender-cvs] [6ffb0a0ee77] blender2.8: DRW: Make profiling more precise on certain drivers.

Clément Foucault noreply at git.blender.org
Mon Nov 19 15:54:33 CET 2018


Commit: 6ffb0a0ee77e6695bf7e8b1ad5c9e1b9d9adbcb5
Author: Clément Foucault
Date:   Mon Nov 19 15:46:13 2018 +0100
Branches: blender2.8
https://developer.blender.org/rB6ffb0a0ee77e6695bf7e8b1ad5c9e1b9d9adbcb5

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.

===================================================================

M	source/blender/draw/intern/draw_manager_profiling.c

===================================================================

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;



More information about the Bf-blender-cvs mailing list