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
2
votes
1 answer

Qt: vsync - missing rendered frames

for a scientific task, flickering areas with a stable frequency (max. 60 Hz), shall be displayed on the screen. I tried to achieve a stable stimulus visualization using Qt 5.6. According to this blog entry and many other online recommendations, I…
2
votes
0 answers

Animation looks laggy in QOpenGLWidget

I have no experience in writing a game and this week I'm trying writing a player of a music game's map (finally may become a game?) in QT; met problem and I think I need some help. I want to show animation in 60 FPS on QOpenGLWidget. It's just some…
Sorayuki
  • 256
  • 2
  • 7
2
votes
2 answers

wglext - extension not installed in OpenGL context

I am trying to disable vsync in OpenGl with WGL_EXT_swap_control using wglSwapIntervalEXT(int interval). I am trying to include the wglext header but after much searching it seems it is not installed on my pc (using opengl extension viewer to find…
Zecbmo
  • 71
  • 1
  • 8
2
votes
1 answer

Tearing with VSYNC in full screen mode only (windowed mode works fine) on Windows 10 / DirectX

I think that my DirectX 11 application worked fine on the previous system (I'm about 70% sure). But now, in Windows 10 (laptop) I have tearing issue in full screen mode only (the windowed mode works without any tearing). The scene is quite "heavy"…
PolGraphic
  • 3,233
  • 11
  • 51
  • 108
2
votes
2 answers

how to compute in game loop until the last possible moment

As part of optimizing my 3D game/simulation engine, I'm trying to make the engine self-optimizing. Essentially, my plan is this. First, get the engine to measure the number of CPU cycles per frame. Then measure how many CPU cycles the various…
honestann
  • 1,374
  • 12
  • 19
2
votes
1 answer

Fast screen capture and lost Vsync

I'd like to generate a movie in real time with a self-made application doing fast screen captures with part of the screen occupied by a running 3D application. I'm aware that several applications already exist for this (like FRAPS or Taksi), and…
user338759
  • 131
  • 7
2
votes
1 answer

SFML vsync always on?

I have been playing around with game loops and physics. The other day, I added some debug statements to see how much time each frame of my game loop was taking. As expected, the results were in the 16ms range. However, I tried disabling vsync, and…
mio iwakura
  • 301
  • 2
  • 11
2
votes
1 answer

Double-Buffer Page-Flipping in Android using OpenGL ES 2.0

How close can I get to Android devices' graphics hardware safely, starting with Froyo and later? I want to implement a simple page-flipping scheme on Android devices, using two frame buffers. It should go like this: Render into Frame Buffer A.…
Janin zah
  • 201
  • 2
  • 14
2
votes
0 answers

How to enable Vsync with Kivy on OS X

I am starting to learn Kivy and after building the tutorial Pong app, I see crazy tearing when the ball redraws, obviously because graphic updates are not in sync with the vertical refresh rate. Is there anyway to achieve such sync?
franmon
  • 2,057
  • 2
  • 19
  • 25
2
votes
1 answer

Exact software synchronisation on vsync pulse

I'm trying to switch images on each incoming vsync pulse. In hardware the vsync pulse of my vga-signal can be easily used by using a trigger for each edge event of the incoming pulse ( VHDL). Now my question: Is it possible to trigger and swap…
JeanDark
  • 29
  • 1
2
votes
1 answer

html canvas animation stutter

Can anyone explain why the provided canvas animation stutters? I've created a test stub which demonstrates the problem. I see the stutter in FF, Chrome, IE on desktop and in FF and Chrome on Android. Is the stutter due to garbage collection? It…
user3356715
  • 181
  • 2
  • 12
2
votes
1 answer

OpenCV display video without miss and tearing

I apologize for my English. I need to display video frame by frame without tearing with fixed FPS. (Display work in 50p mode and i want to display 50 different frame per second). I use soft timer, but nothing works (Stroboscope effect). I use…
2
votes
4 answers

Trouble with vsync using glut in OpenGL

I'm struggling desperately to get Vsync to work in my OpenGL application. Here's the vital stats: I'm using Windows, coding in C++ OpenGL and I'm using FreeGLUT for my OpenGL context (double buffering). I'm aware that for the swap buffer to wait…
Single Entity
  • 2,925
  • 3
  • 37
  • 66
2
votes
3 answers

Turned off VSync but still getting 60FPS in my DirectX 9 application

I have an DirectX9 application which only renders a triangle on the screen, but I am getting a frame rate of 60 FPS no matter if I've got VSync on or not. Why is this? Here is the code I've done to calculate the FPS, but I dont know if this is the…
Danny
  • 9,199
  • 16
  • 53
  • 75
2
votes
1 answer

Double Buffering with vsync (in sync with refresh rate of screen) - C# windows forms

I've been trying to update the BMP of a PictureBox 60 times per second with a line pattern that changes for every update. What's happening is the image is being partially updated in between screen refreshes. So, what you see is part of one pattern…