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 ...
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 ...
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
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 ...
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
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 ...
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
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 ...
1
vote
0
answers
261
views
Linux: blit image on screen without stuttering at a stable frame rate
I'm working on a very simple game, and one of the project goals is to minimise the use of libraries.
I'm drawing every frame into a buffer, which is then displayed using ...
2
votes
2
answers
1k
views
Gldraw call asynchronous or not
When i call gldrawarrays with a large set of data will the function return only after drawing all the vertices or will it happen asynchronously b/w cpu and gpu?
Also how does vsync work. Aren't they ...
3
votes
1
answer
574
views
Turning On/Off Vsync no longer working when rendering to an offscreen buffer
I have this reaallly strange issue that as soon as I render to an offscreen framebuffer I am no longer able to toggle VSync while my application is running. I am using OpenTK as the opengl wrapper, ...
3
votes
1
answer
3k
views
SDL2 and frames per second
I'm diving into the world of SDL2 and C++ and have a few questions after my first few weeks in. Seems like a lot of the tutorials are (from what I understand) limiting the frames per second with a ...
3
votes
1
answer
2k
views
Is Update called based on screens refresh rate? MonoGame
My game is running 60fps (Because I'm using a 60hz monitor) but if I would use a 85hz monitor it would be running 85fps. My question is if update is called based on the screens refresh rate or if its ...
0
votes
1
answer
560
views
How can I implement triple buffering using Direct3D 9?
I am creating an application using Direct3D 9. I want to implement triple buffering with vsync. I can successfully create a graphics device object with 2 back buffers. How do I know which buffer to ...
0
votes
2
answers
4k
views
How to change from 60FPS to 30FPS while keeping things smooth?
Here is my current game loop:
...
13
votes
3
answers
7k
views
How long does it take for OpenGL to actually update the screen?
I have a simple OpenGL test app in C which draws different things in response to key input. (Mesa 8.0.4, tried with Mesa-EGL and with GLFW, Ubuntu 12.04LTS on a PC with NVIDIA GTX650). The draws are ...
0
votes
1
answer
151
views
Why, after calling SetVideoMode as in the following, does nothing appear on my screen?
I am trying to create an application that will need to use double buffering (for purpose of vsync). I am using SDL.NET. From what I understood, in order to have double buffering, I have to ...
3
votes
4
answers
2k
views
Should I worry about the refresh rate?
I'm working on an RTS and there is a lot of camera movement involved. The camera moves at a constant speed but it stutters (seems to jump/jerky movement) if I don't enable vsync. I understand why this ...
6
votes
3
answers
11k
views
Does DirectX implement Triple Buffering?
As AnandTech put it best in this 2009 article:
In render ahead, frames cannot be dropped. This means that when the
queue is full, what is displayed can have a lot more lag. Microsoft
doesn't ...
3
votes
1
answer
1k
views
Weird stuttering with fixed-timestep, variable-framerate game loop
I've been trying to set up fixed-timestep loop for my game, using the technique from here. I have no need for the interpolation step as I intend to run the logic at or above vsync speed.
Here is a ...
1
vote
1
answer
538
views
Procedurally generating terrain in dead time before buffer swap
I'm using OpenGL/C++ in Windows, and my main loop looks like this:
GLboolean done = GL_FALSE;
auto_ptr l_world(new World);
l_world->Init();
...
0
votes
3
answers
2k
views
How does a game's frame rate change for each missed vsync?
I seem to remember reading somewhere that a game's frame rate is halved each time it misses a vsync. In other words, the number of frames per second decreases to 1/2, 1/4, and 1/8 the normal rate for ...
8
votes
2
answers
9k
views
VSync / real 30FPS on Android
I'm working on a game which can't run at Full speed on some devices. On Tegra2, with many optimizations, performance is near 40 fps. The framerate is stable but animations aren't smooth enough, so i ...
3
votes
3
answers
8k
views
Non-blocking VSync in Direct3D
I have a Direct3D application which uses a PRESENTATION_INTERVAL_ONE implementation. Pity, its blocking and eating my CPU waiting for Present. I ended up searching for raster scan (BitBlt) solutions, ...
0
votes
1
answer
3k
views
Fullscreen + Vsync = Stuttering
In my research for a stuttering problem in my game engine, I think, I have found the problem, but don't have any idea why this is happening, that's why I ask you if you have an idea !
The situation :
...