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

HTML5 canvas tearing with requestAnimationFrame

UPDATE: This entire issue ended up being a problem with the systems graphics driver, and not (seemingly) a browser / API issue. The torn frames came down to the actual display updating. Thank you again to those who were a part of the discussion…
The Busy Wizard
  • 956
  • 1
  • 7
  • 11
3
votes
1 answer

Determine exact screen flip times on Android

I am attempting to determine (to within 1 ms) when particular screen flips happen on Android. Choreographer fires every time a frame flips, but gives no way of determining which frame is actually being displayed. According to…
3
votes
0 answers

How to change the vsync interval in GPUView

When click toggle vsync in GPUView, the interval seems to be default to 16.6ms (60Hz), even though my OpenGL app is running on 75Hz monitor at 75 fps. How can I change the vsync interval in GPUView?
user3667089
  • 2,996
  • 5
  • 30
  • 56
3
votes
1 answer

Profiling OpenGL application - when the driver is blocking the CPU side

I made an in-game graphical profiler (CPU and GPU) and there is one strange behavior with the Nvidia driver that I'm not sure how to handle. Here is a screenshot of what a normal case looks like: What you can see here is 3 consecutive frames, GPU…
Jerem
  • 1,725
  • 14
  • 24
3
votes
0 answers

Android animation: keeping up with vsync

Bacground I am developing an Android based application for a yet to be defined hardware platform (currently testing Ouya and MK802IV, all Android 4.1+) that involves displaying various content to an 1080p@60HZ output (big screens). The application…
Karol
  • 31
  • 1
  • 2
3
votes
2 answers

QT - How to properly handle Vsync and multiple QGLWidgets

I'm using three different QGLWidgets in the same main thread, preferably rendered at 60fps but I cannot achieve more than 20fps. It seems that this is caused by Vsync as each widget probably tries to synchronize with the refresh rate independently…
Marc
  • 767
  • 1
  • 10
  • 23
3
votes
0 answers

How to implement OpenGL GPU to CPU synchronization

OpenGL Wiki tells something interesting regarding GPU/CPU synchronization in the last paragraph of the Swap Interval topic page: If GPU<->CPU synchronization is desired, you should use a high-precision/multimedia timer rather than glFinish after a…
Jonathan
  • 331
  • 2
  • 6
3
votes
1 answer

How do you know what you've displayed is completely drawn on screen?

Displaying images on a computer monitor involves the usage of a graphic API, which dispatches a series of asynchronous calls... and at some given time, put the wanted stuff on the computer screen. But, what if you are interested in knowing the exact…
Jonathan
  • 331
  • 2
  • 6
2
votes
0 answers

How to open Chrome/Win10 in EXCLUSIVE fullscreen mode as opposed to screen sized borderless window?

There are multiple flags around involved with starting Chrome in fullscreen and unlocking high framesrates and low input lag --start-fullscren --kiosk --app --disable-gpu-vsync --disable-frame-rate-limit However AFAIK no combination allows Chrome…
InteractiveCube
  • 150
  • 1
  • 14
2
votes
0 answers

Why won't VSync turn off in fullscreen in DirectX11?

I have a weird issue in our engine in DirectX11. When I run our game windowed, I can enable or disable VSync just fine. However, when the game's resolution is the same as the screen resolution, VSync is somehow always on. This happens both in…
Oogst
  • 358
  • 2
  • 14
2
votes
1 answer

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 is reading from and sending to the monitor will be…
felipeek
  • 1,193
  • 2
  • 10
  • 31
2
votes
0 answers

How to fix 60 fps loop on non-perfect-60Hz (59.92Hz) display?

I just started learning game programming, I choosed to use a fixed-timestep game loop since it's straight forward and easier to understand. Basically like this: while (game_is_running) { input(); update(); render(); …
RadarNyan
  • 306
  • 1
  • 2
  • 12
2
votes
1 answer

How to fix tearing in Qt Quick app with Qt 5.9.1?

My app is having tearing problems when I scroll fast horizontally. Normally I'd just enable vsync, but I don't know how to do that in Qt. The tearing is occurring on my dev PC which runs Linux with a X-server, but it will also need to work well on…
Stefan Monov
  • 11,332
  • 10
  • 63
  • 120
2
votes
1 answer

How to set target frame rate with Application.targetFrameRate to fix bad frame rate (vsync)

After noticing my game was quite jittery when building it to my iOS device I checked the profiler and found out that vsync was responsible. After a little of research I figured in order to resolve the jitteriness of my game I had to set the target…
RaZ
  • 235
  • 1
  • 4
  • 13
2
votes
0 answers

Vsync is disabling audio in android

I am working on an app which uses Audiotrack to play the concerned audio.App allows the user to pause and play the audio at will .After pausing and playing 2 -3 times I cannot hear any audio while my log shows that audio is still playing.Before…
Ayush Bansal
  • 702
  • 1
  • 7
  • 17