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

FPS loss when window is focused #265

Open
RedstoneGithub opened this issue Mar 28, 2024 · 5 comments
Open

FPS loss when window is focused #265

RedstoneGithub opened this issue Mar 28, 2024 · 5 comments

Comments

@RedstoneGithub
Copy link

When playing the Fabric version of this mod (v1.20.4-1.1.8) and Sodium/Iris, I lose about 20 fps if the Minecraft window is focused on my desktop. When not focused, I get around 90 FPS, but cant use any GUI controls. When focused its less than 70, sometimes in the 50s. Haven't tested any other versions yet. This is through virtual desktop on quest 3. 3080/i9 9900k

@fayer3
Copy link
Member

fayer3 commented Mar 28, 2024

window focus should be irrelevant, the window just can't be minimized to use the gui

@fayer3
Copy link
Member

fayer3 commented Mar 28, 2024

and can you post a latest.log

@Techjar
Copy link
Collaborator

Techjar commented Mar 28, 2024

Do you have the window set to fullscreen?

@RedstoneGithub
Copy link
Author

It occurred in both fullscreen and windowed, I don't have Gsync on for windowed mode, and minecraft vsync is off. In windowed though you have to minimize it to get the 20-30 fps back, but again there's no GUI control. I have the render res to 1804x1867. latest.log is here: https://mclo.gs/jfYDgUV is there a way for VR control to work while the screen is minimized? that might solve this issue

@Techjar
Copy link
Collaborator

Techjar commented Apr 11, 2024

No we can't fix that, it has to do with the window size being considered 0x0 when minimized, causing the mouse to have no valid coordinates. But you shouldn't have worse performance when the window is focused. Smells of some Windows scheduling feature misbehaving.

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

No branches or pull requests

3 participants