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

MacOS - Example apps don't update projection matrix when window resized #179

Open
spacejack opened this issue Feb 6, 2018 · 6 comments
Open

Comments

@spacejack
Copy link

The projection matrix (or viewport?) is not updated when the window is resized as it is when running on Windows/Linux.

@kvark
Copy link
Collaborator

kvark commented Feb 6, 2018

Could you please check gl/glutin samples to confirm an upstream issue?

@spacejack
Copy link
Author

Interesting results...

Anyway the examples are all very simple, just renders one triangle. When resizing the 'window' example on MacOS the triangle is scaled to fit the window at all times. On Windows10 the triangle remains a fixed size, at a fixed position relative to the bottom/left corner of the window. So it gets cropped if the window shrinks. It also flickers and bounces a bit while resizing.

This is the opposite of what I would have expected, but shows there are differences between platforms.

@kbarros
Copy link

kbarros commented Feb 25, 2018

I can confirm that on MacOS, resizing three-rs windows generates flicker, unexpected updates to the viewport, and generally bad behavior (e.g., increasingly long lag times). I don't observe this behavior with the examples from the glutin project.

@vitvakatu
Copy link
Member

@kbarros what version of glutin did you tested? Also I kindly ask you to test gfx/pre-ll examples (https://github.com/gfx-rs/gfx/tree/pre-ll)

@kbarros
Copy link

kbarros commented Feb 25, 2018

I apologize, but today I can't reproduce the behavior I reported yesterday with three-rs resizing. Today I only observe the projection matrix / viewport issue that spacejack originally reported. Specifically, when resizing the window in the vertical direction, it appears that the viewport becomes vertically off-center. I confirmed that this resizing issue does not appear in the glutin and gfx/pre-ll examples. I tested only on MacOS.

@vitvakatu
Copy link
Member

@kbarros thanks, I'll try to look into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants