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

native/macos: Re-re-implemented event loop #475

Merged
merged 1 commit into from
Aug 11, 2024

Commits on Aug 11, 2024

  1. native/macos: Re-re-implemented event loop

    - Reverted macos.rs to this implementation:
    not-fl3#443 (it's probably better compare changes with this PR than with latest commit to understand what was added additionally)
    - Now using own NSView with NSOpenGLContext instead of NSOpenGLView
    - For metal backend using redraw instead setNeedsDisplay, because somehow it reduces cpu usage (Cannot find info about enabling vsync like this in MTKView docs)
    - Fixed freezing on resize by drawing in draw_rect that called during "live resize"™. I don't like this approach, but it blocks main event loop while resizing, so it will not be some kind of concurency of opengl stuff i think
    - Reducing CPU usage when window is occluded
    - Added comments to hacky places, there are lots of them imo
    
    Fixes:
    - not-fl3#455
    - not-fl3#470
    birhburh committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    7aef5d0 View commit details
    Browse the repository at this point in the history