xCollateral/VulkanMod

Unstable frametime with VSync enabled

Opened this issue · 1 comments

Unstable frametime with VSync enabled

I have a 75 Hz refresh rate monitor. With VSYNC enabled, I should have had a stable 13 ms frame time, like in vanilla. Instead, I'm getting a repeating pattern of one very fast frame, two 13 ms frames, and one ~26 ms frame.

Here's a screenshot with the bug:
2024-11-20_01 42 39

Here's vanilla for the comparison:
2024-11-20_01 45 22

Steps to reproduce

  1. Change render distance and simulation settings to the minimum
  2. Enable VSync
  3. Disable FPS limit
  4. Create a superflat world
  5. Look straight down
  6. You get unstable frametimes

Log files

2024-11-20-2.log

Seems like it's reproducible only on X11. On wayland (with patched glfw) it's fine.
2024-11-25_23 28 41