Questions tagged [vsync]
V-sync is a graphics setting used to prevent screen tearing.
49 questions
0 votes
1 answer
208 views
I want to limit my in-game FPS in my Unity game to 20 FPS, but this causes screen tearing in the build. How do I get rid of the tearing?
I have tried vSync, but in other forums I have read the vSync ignores the targetFramerate. Is there a way I can keep a 20 FPS cap without screen tearing? In my game I am trying to achieve a nostalgic ...
4 votes
1 answer
2k views
What does VSync mean on a variable refresh rate monitor?
A game which enables VSync means that the game frames get synchronized to the monitor's refresh rate (to avoid tearing). A variable refresh rate monitor means that the monitor refresh rate gets ...
2 votes
1 answer
621 views
DOS VGA card vertical sync - how to check for blanking interval?
I'm right now developing a game for ms dos in C++ (compiler: DJGPP) and need to test if the VGA card is currently in the vertical blanking interval. Is there a memory address I can just read? How can ...
0 votes
1 answer
730 views
How to enable V-Sync in Java?
I have used the BufferStrategy, but my code runs still way too fast. xrandr reports that TearFree is "on" and the ...
1 vote
0 answers
128 views
Odd SDL VSYNC behaviour when monitor is set to 50 Hz
I am observing strange behaviour with VSync in SDL. I have this code: ...
1 vote
1 answer
346 views
Understanding buffer swapping in more detail
This is more a theoretical question. This is what I understand regarding buffer swapping and vsync: I - When vsync is off, whenever the developer swap the front/back buffers, the buffer that the GPU ...
1 vote
0 answers
508 views
Unity profiler spikes with vsync vs smooth no vsync
I'm trying to profile my game, this is a webgl game, and the browser forces vsync. My problem is, when I disable vsync in unity I get a pretty smooth profiler, while with vsync I get huge spikes. I ...
1 vote
0 answers
88 views
Techniques to mitigate microstuttering when the FPS is above 60fps and vsync is off
The problem with first person shooters is that your input is important, and coupling it with VSync ruins it. The following frames per second data when rendering with OpenGL shows: 60-100 fps: ...
2 votes
2 answers
2k views
Wait for vSync without swapping buffers with SDL
I am trying to optimize my SDL rendering loop for an immediate mode GUI application that doesn't need to be redrawn every frame. I have vSync turned on and would like to skip buffer clearing / drawing ...
0 votes
0 answers
208 views
How Best to Implement Fixed Time Step for Gsync/Freesync Monitors?
I currently implement my game loop using a variable fixed timestep, i.e. dt = 1 / monitor_refresh_rate with vsync (or pseudo vysnc with delays where vsync is ...
0 votes
0 answers
856 views
Flickering / tearing with glfwSwapBuffers
I recently separated my logic and rendering threads to fix this problem: GLFW window freezes on title bar hold/drag This means the logic and rendering are no longer running in lock-step as they were ...
3 votes
0 answers
106 views
Point to using vSyncCount higher than 1?
Is there a point to using QualitySettings.vSyncCount higher than 1? From my understanding it sets the framerate to fractions of the screen refreshrate (i.e: FPS = refreshrate/vSyncCount). So 1 is ...
0 votes
1 answer
1k views
Use vsync event instead of a 16ms timer?
I found that in game development, most people set a timer that gets triggered every 16ms to do the rendering. As an Android programmer, I'm familiar with the Choreographer. You set a callback that ...
3 votes
1 answer
1k views
How can I tell in code if vsync is disabled on desktop PC?
My game needs to behave differently to get the best performance if the user disables vsync globally (basically, I need to change the scheduling on my housekeeping operations). Is there a graphics ...
3 votes
1 answer
15k views
The value of VSync on vSync Count in Unity
In Unity, we can set the vSync value as "No sync" = 0, "Every V Blank" (60 fps) = 1 and "Every Second V Blank" (30 fps) = 2. But in the Unity Quality Setting documentation , it's written the vSync ...