[GH-ISSUE #5042] VSync error and freezes #1532

Open
opened 2026-11-02 15:47:45 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @kira-horizon[bot] on GitHub (Oct 31, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5042

Version: nightly-2026-10-31-9d979ca · OS: macOS 26, Apple M2, M2 GPU (copied from the report)

What I did:
Played with V-Sync off.
Played with V-Sync on.
Compared camera smoothness and framerate in both cases.

What happened:
With V-Sync off, the camera stutters and feels delayed despite high FPS. With V-Sync on, the framerate is capped at 30 even though the display supports 60 Hz, which makes the game unpleasant to play.

What I expected:
With V-Sync off, the camera should be smooth and responsive at high FPS. With V-Sync on, the framerate should be capped at the display’s refresh rate (60 Hz), not 30.

Does it happen every time?
Yes.

Horizon version: nightly-2026-10-31-9d979ca

OS, CPU, GPU: macOS 26, Apple M2, M2 GPU

Reported on Discord by szanbros in #horizon-bugs · Discord thread
Tags: rendering

Attachments (Discord links expire after a while; the thread keeps them)

Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.

Originally created by @kira-horizon[bot] on GitHub (Oct 31, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/5042 **Version:** nightly-2026-10-31-9d979ca · **OS:** macOS 26, Apple M2, M2 GPU <sub>(copied from the report)</sub> > What I did: > Played with V-Sync off. > Played with V-Sync on. > Compared camera smoothness and framerate in both cases. > > What happened: > With V-Sync off, the camera stutters and feels delayed despite high FPS. With V-Sync on, the framerate is capped at 30 even though the display supports 60 Hz, which makes the game unpleasant to play. > > What I expected: > With V-Sync off, the camera should be smooth and responsive at high FPS. With V-Sync on, the framerate should be capped at the display’s refresh rate (60 Hz), not 30. > > Does it happen every time? > Yes. > > Horizon version: nightly-2026-10-31-9d979ca > > OS, CPU, GPU: macOS 26, Apple M2, M2 GPU Reported on Discord by **szanbros** in #horizon-bugs · [Discord thread](https://discord.com/channels/1559227979002028052/1566016883621101618) Tags: rendering **Attachments** (Discord links expire after a while; the thread keeps them) - [vsync.mp4](https://cdn.discordapp.com/attachments/1566016883621101618/1566016884875464795/vsync.mp4?ex=6ae70260&is=6ae5b0e0&hm=bc1e8392174b1331ff746233ee4a579601618966602abaeb3f90de6e76cd996f&) <sub>Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.</sub><!-- kira -->
Author
Owner

@k3yh commented on GitHub (Oct 31, 2026):

🤖 Agent: the VSync-off half looks like what #1415 (ludovic111, draft) is about. With VSync off, a macOS window still has to wait for the compositor to free a drawable, so nextDrawable blocks until the next refresh. That PR's description says it has not been tried on a Mac with an unlocked screen yet. A run of it on this M2 would help, both for this report and for that PR.

I couldn't find an issue or PR for the 30 FPS cap with VSync on. I have no Mac, so I haven't checked either half.

<!-- gh-comment-id:6541677563 --> @k3yh commented on GitHub (Oct 31, 2026): 🤖 Agent: the VSync-off half looks like what #1415 (ludovic111, draft) is about. With VSync off, a macOS window still has to wait for the compositor to free a drawable, so `nextDrawable` blocks until the next refresh. That PR's description says it has not been tried on a Mac with an unlocked screen yet. A run of it on this M2 would help, both for this report and for that PR. I couldn't find an issue or PR for the 30 FPS cap with VSync on. I have no Mac, so I haven't checked either half.
Author
Owner

@kira-horizon[bot] commented on GitHub (Oct 31, 2026):

szanbros added on Discord:

Did you add?

<!-- gh-comment-id:6549169794 --> @kira-horizon[bot] commented on GitHub (Oct 31, 2026): **szanbros** added on Discord: > Did you add? <!-- kira -->
Author
Owner

@szanbros commented on GitHub (Oct 31, 2026):

In non‑fullscreen mode with vsync enabled, the frame rate is 60 fps, but for some reason in full‑screen mode it’s 30, version d91cab6 (this error is not fixed from 9d979ca)
Video link: https://jumpshare.com/s/MSYW75OSYIHhpsjA8YA9

<!-- gh-comment-id:6549197042 --> @szanbros commented on GitHub (Oct 31, 2026): In non‑fullscreen mode with vsync enabled, the frame rate is 60 fps, but for some reason in full‑screen mode it’s 30, version d91cab6 (this error is not fixed from 9d979ca) Video link: https://jumpshare.com/s/MSYW75OSYIHhpsjA8YA9
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#1532
No description provided.