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
Window flickering during resize #7898
Comments
Is example from https://github.com/rust-windowing/winit flickers? Also, is example from github.com/rust-windowing/glutin/ flickers? |
No, they don't. The problem seems to be related to glutin, but the glutin example has vsync enabled and also renders in If I change the glutin example such that vsync is disabled and if I move the render call to |
I feel like it's a macOS sync issue or something like that. Because the And with e.g. |
The client area of the window intermittently becomes transparent during resize, which causes flickering. See video. Possibly related to #969.
Untitled.mov
I explored some ways to fix the problem, but am uncertain on how to proceed. Any one of the following code changes fixes or strongly reduces flickering:
surface.set_swap_interval
inalacritty/src/display/mod.rs
self.surface.resize
inalacritty/src/display/mod.rs
window_context.draw
duringWinitEvent::AboutToWait
instead ofWindowEvent::RedrawRequested
inalacritty/src/event.rs
Changing
.with_transparent(true)
to.with_transparent(false)
inalacritty/src/display/window.rs
helps a bit, since the window does not become transparent, bit it still flickers, exposing the system window color instead.System
OS: macOS 14.4.1
Version: alacritty 0.13.2 (bb8ea18), alacritty 0.14.0-dev (d4f2f85)
The text was updated successfully, but these errors were encountered: