Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better support for non double buffering windows #3

Closed
szabolcsdombi opened this issue Nov 16, 2021 · 2 comments
Closed

Better support for non double buffering windows #3

szabolcsdombi opened this issue Nov 16, 2021 · 2 comments

Comments

@szabolcsdombi
Copy link
Owner

Double buffering is not necessary with zengl.
Rendering is done entirely offscreen and the final image may be blitted to the screen.
This technique does not require double buffering to hide in-progress rendering artifacts.
When double buffering is off, it seems the rendering queue is not flushed automatically at the end of a frame. (the end of the frame is not clearly defined in this case)
glFlush must be called

TODO: implement Context.flush()
TODO: maybe Image.blit(..., flush=True)
TODO: keep only one of the above

@szabolcsdombi
Copy link
Owner Author

flush is definitely a must have #2

@szabolcsdombi
Copy link
Owner Author

a much more simple solution is to flush after blitting to the screen.
the user should not be aware of a required explicit flush.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant