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.
This commit is contained in:
Clément Foucault 2018-11-19 15:46:13 +01:00
parent ee44dd1b2b
commit 6ffb0a0ee7
1 changed files with 1 additions and 0 deletions

View File

@ -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;