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

Perform rendering on a separate thread #1

Open
johannesugb opened this issue Jan 12, 2018 · 0 comments
Open

Perform rendering on a separate thread #1

johannesugb opened this issue Jan 12, 2018 · 0 comments

Comments

@johannesugb
Copy link
Member

glfwSwapBuffers can be very very slow if there is input (e.g. mouse is moved) resulting in stuttering. As stated in [1], it may only be called from the main thread, but rendering can be performed from secondary threads (see [2]).

=> Move rendering to a secondary thread!

[1] http://www.glfw.org/docs/latest/group__window.html#ga37bd57223967b4211d60ca1a0bf3c832
[2] http://www.glfw.org/docs/3.0/group__context.html#ga15a5a1ee5b3c2ca6b15ca209a12efd14

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

No branches or pull requests

1 participant