Page 1 of 1
Vsync in MacOS Causes Frame Stutter
Posted: Wed Nov 09, 2022 11:22 pm
by Andrew67100
Hello! Title says it all. I have reported this issue before but wasn't (and am still not exactly) able to nail down a cause of what it could be. Simply put, turning on vsync causes some very noticeable frame stuttering at any frame rate and well under what my Mac can max out at. In DOOM II, I usually get about 400 FPS at the beginning stage on my monitor, but locking it to my monitor's refresh rate of 100 causes stutters. Now, just limiting the frame rate to 100 and turning vsync off eliminates the stutters, but introduces some distracting tearing. My solution for playing right now is simply letting the frames run wild and dealing with the occasional screen tearing, but I would love to be able to play with vsync enabled.
I'm running GZDoom 4.9 using MacOS 13 on an M1 Max Mac Studio.
Thank you.
Re: Vsync in MacOS Causes Frame Stutter
Posted: Thu Nov 10, 2022 1:48 am
by _mental_
Apple broke VSync again. Early versions of Monterey had exactly the same bug. Nothing we can do about it.
Re: Vsync in MacOS Causes Frame Stutter
Posted: Thu Nov 10, 2022 7:37 am
by Rachael
Things were great in Monterey at the end, I wish they hadn't moved forward with Ventura.
Re: Vsync in MacOS Causes Frame Stutter
Posted: Sat Nov 12, 2022 12:35 pm
by Andrew67100
This stutter was still occurring in Monterey, even late version. Vsync does not have this issue in VKQuake. I’m really just curious as to what’s causing it, because the new Resident Evil 8 port runs smooth as butter on my Mac.
Re: Vsync in MacOS Causes Frame Stutter
Posted: Sat Nov 12, 2022 2:47 pm
by _mental_
What renderer are you using, OpenGL or Vulkan?
Re: Vsync in MacOS Causes Frame Stutter
Posted: Mon Nov 14, 2022 11:17 pm
by Andrew67100
_mental_ wrote: ↑Sat Nov 12, 2022 2:47 pm
What renderer are you using, OpenGL or Vulkan?
I'm using Vulkan, but it still occurs with every other renderer.
Re: Vsync in MacOS Causes Frame Stutter
Posted: Tue Nov 15, 2022 1:54 am
by _mental_
It seems to be
this issue. Although, I have no idea why VKQuake works fine.
Can you set
vid_nativefullscreen CVAR to true and restart GZDoom to check if it changes something?
Re: Vsync in MacOS Causes Frame Stutter
Posted: Wed Nov 16, 2022 2:07 am
by Andrew67100
_mental_ wrote: ↑Tue Nov 15, 2022 1:54 am
It seems to be
this issue. Although, I have no idea why VKQuake works fine.
Can you set
vid_nativefullscreen CVAR to true and restart GZDoom to check if it changes something?
Hmm that didn't seem to affect it at all. Here's a clip of what it looks like for me, in slow motion though so it comes across clearer. I spotted about 9 stutters/hitches in this clip. You'll notice the frame time graph doesn't actually reflect these stutters, which is very odd to me.
https://imgur.com/a/UaQXINd