Skip to content
Commit 7c9c545b authored by Loïc Molinari's avatar Loïc Molinari
Browse files

gl-renderer: Get rid of begin fence sync



Output repaint uses a pair of fence syncs to profile GPU execution by
retrieving their timestamps once signalled. While the end timestamp
can be rather inaccurate in some cases (drivers reusing sync objects
from previous command buffers), the begin timestamp is never correct
because fence syncs are signalled on command buffer completion.

Get rid of the begin fence sync and use the EXT_disjoint_timer_query
extension to measure the actual repaint duration and extrapolate the
begin timestamp from the end one.

Fixes #342

Signed-off-by: default avatarLoïc Molinari <loic.molinari@gmail.com>
parent 14fc87cc
Loading
Loading
Loading
Pipeline #846912 passed with stages
in 1 minute and 54 seconds
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment