mirror of
https://gitlab.com/kicad/code/kicad.git
synced 2025-09-14 18:23:15 +02:00
DRAW_PANEL_GAL: add profiling counter for OGL buffer swap
This commit is contained in:
parent
cdb214d43a
commit
691ca11b5a
@ -580,7 +580,7 @@ void OPENGL_GAL::EndDrawing()
|
|||||||
PROF_COUNTER cntEndNoncached("gl-end-noncached");
|
PROF_COUNTER cntEndNoncached("gl-end-noncached");
|
||||||
PROF_COUNTER cntEndOverlay("gl-end-overlay");
|
PROF_COUNTER cntEndOverlay("gl-end-overlay");
|
||||||
PROF_COUNTER cntComposite("gl-composite");
|
PROF_COUNTER cntComposite("gl-composite");
|
||||||
PROF_COUNTER cntSwap("gl-composite");
|
PROF_COUNTER cntSwap("gl-swap");
|
||||||
|
|
||||||
cntTotal.Start();
|
cntTotal.Start();
|
||||||
// Cached & non-cached containers are rendered to the same buffer
|
// Cached & non-cached containers are rendered to the same buffer
|
||||||
@ -615,6 +615,8 @@ void OPENGL_GAL::EndDrawing()
|
|||||||
m_compositor->Present();
|
m_compositor->Present();
|
||||||
blitCursor();
|
blitCursor();
|
||||||
|
|
||||||
|
cntComposite.Stop();
|
||||||
|
|
||||||
cntSwap.Start();
|
cntSwap.Start();
|
||||||
SwapBuffers();
|
SwapBuffers();
|
||||||
cntSwap.Stop();
|
cntSwap.Stop();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user