Questions tagged [vsync]

Vsync (short for Vertical Synchronization) is a rendering option for video cards. This option prevents the video card from changing the display memory until the monitor is done with its current refresh cycle.

Vsync (short for Vertical Synchronization) is a rendering option for video cards. This option prevents the video card from changing the display memory until the monitor is done with its current refresh cycle.

When vsync is applied, the rendering engine would match the maximum refresh rate of the monitor if the frame rate being produced is higher than the refresh rate of the monitor. This effectively throttles the maximum generated frames per second of the graphics card.

Turning vsync on can improve rendering quality when applied to applications that have frame rates significantly higher than the monitor's refresh rate as this relieves tearing of the image and results in smooth playback. On the other hand if the graphics card is outputting significantly lower frame rates than the monitor's refresh rate, this can result to the video output having judder as the graphics card may miss the monitor's refresh deadlines.

155 questions
0
votes
0 answers

Vsyncing a windowed mode opengl game at 20FPS until a GDI window becomes topmost

My single threaded Double buffered Opengl game is running across two monitors using one HWND, HDC and HGLRC combination. So each frame buffer is 2560 x 1024 in size. My PC is: Intel Core 2 Quad CPU @ 3.00GHz ATI Radeon HD 3400 Series 512MB VRAM DAC…
Hinchy
  • 143
  • 9
-1
votes
1 answer

How I do make my animation repeat when I click on it with animatedbuilder? flutter/dart

I'm working on a custom animation button. I want to repeat the animation every time the user taps on it. So when the user clicks on it, the container scales bigger. And returns to the normal size. And when the user clicks on it again it does it…
An Tran
  • 89
  • 3
  • 8
-1
votes
1 answer

Strange OpenGL pixelation behavior

I'm using PyOpenGL and GLUT to draw a square that moves in a circle. I do not clear the screen after drawing squares, because I desire a trailing effect. For some reason, squares that have been drawn already will move when new ones are…
Enrico Borba
  • 1,877
  • 2
  • 14
  • 26
-1
votes
1 answer

How to disable SDL2 FPS limit

I am using SDL 2.0.4 and GLEW 1.13.0 and it seems like there is some kind of fps limit in SDL2. I know this, because I did some time measurement. To be more specific, I do not draw anything, but if I call SDL_GL_SwapWindow() in my main loop, each…
JPKing64
  • 15
  • 4
-1
votes
1 answer

Stuck at 30 fps when using two viewports with GLFW in OpenGL

vsync is switched on and off with glfwSwapInterval(1) or glfwSwapInterval(0) single viewport is glClear --> glViewport(0, 0, win_w,win_h) --> drawscene() --> glfwSwapBuffers in the rendering loop double viewport is glClear --> glViewport(0, 0,…
user3667089
  • 2,996
  • 5
  • 30
  • 56
1 2 3
10
11