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

Added an option to use WaitEvents() instead of PollEvents() #166

Merged
merged 6 commits into from
Feb 19, 2025

Conversation

Sukhoverkhaya
Copy link
Contributor

I sometimes use WaitEvents() insead of PollEvents() in render loop to optimize event handling, but in latest versions of CImGui there is no way to customize render functions, defined in GlfwOpenGLBackend extension, so I think it would be helpful for more then just me to add the option to choose between WaitEvents() and PollEvents().

Copy link
Member

@JamesWrigley JamesWrigley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for the contribution :)

@JamesWrigley JamesWrigley merged commit e72ba17 into JuliaImGui:master Feb 19, 2025
4 checks passed
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

Successfully merging this pull request may close these issues.

Is there a way to use GLFW.WaitEvents instead of GLFW.PollEvents in the render loop?
2 participants