-
Notifications
You must be signed in to change notification settings - Fork 54
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 resize is laggy and doesn't resize viewport #181
Comments
Try adding class App(mglw.WindowConfig):
gl_version = (3, 3)
resizable = True
aspect_ratio = None By default we try to respect the aspect ratio for the initial resolution. Possibly there is a scissor box being set causing only a partial screen clear. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Probably a revival of this one, which seems to be closed as solved
The code below starts a window, and it works fine in 60+ FPS, but if I try to resize the window, everything lags and the viewport is not resized.
Screencast.from.04.11.2023.00.41.47.webm
I use Ubuntu 22.04.3 LTS, with proprietary nVidia drivers on X11.
moderngl
andmoderngl-window
are installed from pypi inside a cleanconda
environment.Expected result:
The resize should be smooth, and the viewport should match the window
Actual result:
The resize is laggy and the viewport size doesn't follow the window size
Here is the output of the program at the start:
Here is the code:
The text was updated successfully, but these errors were encountered: