Experimental#15
Open
njazz wants to merge 6 commits intopodgorskiy:masterfrom
Open
Conversation
to skip draw calls and keep frame
Owner
|
Could you please explain what keep_frame does? |
Contributor
Author
|
Hello! The idea behind these additions was to have the reduced framerate on macOS when the app is in the background. It seems that otherwise it runs the main new_frame()-render() loop as fast as possible instead of usual screen-synced 60 fps. i've made this 'keep_frame()' as fast workaround. maybe there can be a better option for this. now i'm actually not using this and just making the slower frame rate with code like this: it would be better to be able to skip all drawing commands Thanks! Regards, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
added Context.IsActive() to be able determine if the window is currently focused.
this is a workaround for some cases on OS X when the window that is not focused causes high CPU usage of windowserver process
added:
drag_int()
drag_float()
add_bezier_curve()
is_window_focused()
is_window_hovered()
fixed:
menu_item()
image()
color_edit()
color_picker()