Replies: 1 comment 3 replies
-
|
This class has been provided by Stephane Damo and unfortunately I do not know,
why he waits for V-sync after re-setting the virtual offset. Honestly I never
thought about it. But you may be right and it should wait before.
As a solution I could add a boolean parameter bDoNotWaitForVSync to
UpdateDisplay() and a method, which returns a pointer to the instance of
CBcmFrameBuffer inside C2DGraphics. You could wait everywhere for VSync then,
before or after or never.
What do you think?
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm studying the C2DGraphics class, and have some questions...
The UpdateDisplay method does one of two things, depending on the
m_bVSyncflag:What if I want to do the fast page-flip, but not wait for vsync (because, for example, I already wait for vsync elsewhere in my kernel)?
And for that matter: why do we wait for vsync after flipping the page (calling
SetVirtualOffset)? If UpdateDisplay happens to be called well before the vsync signal, wouldn't it put the screen in a state where it changes while drawing (causing tearing)? Seems like we should vsync before flipping the page.Beta Was this translation helpful? Give feedback.
All reactions