VivecraftMod icon indicating copy to clipboard operation
VivecraftMod copied to clipboard

FPS loss when window is focused

Open RedstoneGithub opened this issue 11 months ago • 5 comments

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

RedstoneGithub avatar Mar 28 '24 19:03 RedstoneGithub

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

fayer3 avatar Mar 28 '24 20:03 fayer3

and can you post a latest.log

fayer3 avatar Mar 28 '24 20:03 fayer3

Do you have the window set to fullscreen?

Techjar avatar Mar 28 '24 21:03 Techjar

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

RedstoneGithub avatar Apr 11 '24 01:04 RedstoneGithub

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.

Techjar avatar Apr 11 '24 10:04 Techjar