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

Panning around in with_winit example is laggy #327

Open
matthewgapp opened this issue Jun 3, 2023 · 4 comments
Open

Panning around in with_winit example is laggy #327

matthewgapp opened this issue Jun 3, 2023 · 4 comments
Labels
disposition:close The issue is growing stale and is likely to be closed if no response is provided.

Comments

@matthewgapp
Copy link

I'm on an M1 macbook, running the with_winit example with --release. There is considerable lag when I begin a drag to pan the image with mouse drag and drop. The lag is very noticeable (500ms - 1s). If I continue dragging without lifting the left mouse, the lag disappears.

@DJMcNab
Copy link
Collaborator

DJMcNab commented Jun 3, 2023

Are you perhaps using the 'Magnet' application, which has been known to introduce similar lag? The recommended solution if so is to stop using that application.

@matthewgapp
Copy link
Author

@DJMcNab thanks for the response. That issue seems slightly different (the lag in that issue arises when dragging the entire window via the title bar; but my lag arises when panning the contents inside the window.

I'm not using Magnet but, curiously, I can reproduce the titlebar lag. So perhaps the issue I'm experiencing, the titlebar lag, and the issue you mentioned are all caused by the same underlying problem that spans beyond Magnet. I'm going to do a little digging and will come back here with my findings. Then we can close and link this to the appropriate repo.

@DJMcNab
Copy link
Collaborator

DJMcNab commented Jun 3, 2023

Interesting. Lag inside the window is reminiscent of https://xi.zulipchat.com/#narrow/stream/354396-xilem/topic/Xilem.20example.20laggy - however the conclusion there was also the use of Magnet IIRC.

Hopefully we can reach a good conclusion. If you want to further walk through what you try, to see if anyone else has any ideas, feel free to make a topic in: Xi Zulip

Another thing to try is toggling vsync on and off (which is the V key)

@DJMcNab
Copy link
Collaborator

DJMcNab commented Feb 24, 2024

Does this still reproduce for you?

@simbleau simbleau added the disposition:close The issue is growing stale and is likely to be closed if no response is provided. label Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
disposition:close The issue is growing stale and is likely to be closed if no response is provided.
Projects
None yet
Development

No branches or pull requests

3 participants