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

Do Handler postDelay not precise

In my app, I used handle.postDealy(Runnable, 50) to refresh my View. but sometimes it was very not precise. it was be 90ms. here are the log: onRender interval: 86 onRender interval: 90 onRender interval: 84 onRender interval: 90 how can I get the…
0
votes
1 answer

GPipe VSync & FPS

I'm starting to learn the GPipe library, and was wondering how someone could accomplish vsync and FPS control with it. Initially, I was thinking a separate thread could block every 1 * 1000000 / FPS microseconds and run swapContextBuffers, but that…
Athan Clark
  • 3,886
  • 2
  • 21
  • 39
0
votes
1 answer

Canvas vsync not working

I have a javascript/canvas game using requestanimationframe to sync the drawing to the monitor. However I still get shearing effects when the game scrolls (Google Chrome on Windows 7). Is there a better way to draw to screen? Double buffer? This is…
0
votes
0 answers

NSTimer and V-sync how get more than 60fps

For creating mainloop in my opengl app for Mac I'm using NSTimer: [NSTimer scheduledTimerWithTimeInterval:.001 target:view selector:@selector(render:) …
0
votes
1 answer

Avoiding screen tearing in linux + QT

As far as i understand X11 does not support double\triple buffer mechanism to avoid screen tearing. so I tried to use the openGL widgets, then i understood there no support what so ever for openGL+raspberry pi +qt4. All i am asking is a very basic…
Alex
  • 159
  • 1
  • 9
0
votes
1 answer

SDL-OpenGL Unable to disable V-Sync on Samsung Galaxy Note 4

Using double buffer and the buffer swap function to end the draw loop, SDL_GL_SwapWindow, when I set the Vsync to Off through: SDL_GL_SetSwapInterval(0); //returns 0 so the vsync option is set correctly Looks like the VSync is still on on this…
SaintJob 2.0
  • 554
  • 4
  • 21
0
votes
2 answers

Why Direct2D only runs at an FPS of 30 after unplugging the external power supply of my laptop?

I am new to Direct2D and recently I've found a wierd problem. When external power supply is plugged, my program runs at a steady FPS of 60, which I know may be a result of VSync; but after unplugging the external power supply for a while, my program…
DarkZero
  • 2,259
  • 3
  • 25
  • 36
0
votes
0 answers

How can I determine when a monitor has just refreshed the screen?

I would like to synchronize rendering within my Direct3D9 application with the monitor's refresh rate. I would like to avoid using VSync because it locks processing until each frame is rendered thus reducing frame rate. Ultimately, I would like to…
P. Avery
  • 779
  • 1
  • 16
  • 34
0
votes
1 answer

Does Firefox OS synchronize platform and kernel for display?

Can someone help me understand how display rate is synchronized between platform and kernel. Because I am unable to see the use of vsync, as we used to do in Android ? So I wanted to know how firefox os do it ?
Rahul
  • 1,607
  • 3
  • 23
  • 41
0
votes
1 answer

Why is Java drawing slow on a new PC? - VSYNC?

Running a Java drawing benchmark on a new PC (Core i7-4820K 3.7 GHz, Asus P9X79 LE, GeForce GTX 650, Windows 8.1 and Ubuntu 14.04) appeared to run using vsync at around 60 FPS via Windows with Java RTE 1.7.0_65 . Then, on one later occasion, ran at…
Roy Longbottom
  • 1,192
  • 1
  • 6
  • 8
0
votes
3 answers

Check that we need to sleep in glfwSwapBuffers method

I'm trying to create sample app using glew and glfw. The main loop is straightforward and looks like: while (running) { someUsefullMathHere(); renderer->render(timeDelta); glfwSwapBuffers(window); glfwPollEvents(); running =…
Bot_A_Nick
  • 15
  • 3
0
votes
1 answer

Is ENTER_FRAME dispatched at the end of vertical blanking signal or at the start of window?

Is ENTER_FRAME dispatched at the end of vertical blanking signal (vblank or vsync) -the actual beginning of the frame on the screen, OR at the beginning of the flash window (if the stage3D app is in window mode), OR in an imprecise timing (depending…
BEIC
  • 67
  • 7
0
votes
1 answer

CVDisplayLink constant outputTime value

I'm writing this post in case anyone else is having the same issue I've been having with the lack of documentation for the CVDisplayLink API. Intro: In my CVDisplayLink code I've been using the following code to obtain the deltaSeconds value between…
diegoreymendez
  • 1,997
  • 18
  • 20
0
votes
1 answer

Strange delay when executing glTexImage2D with vsync on

I'm programming a video software where I'm using Qt's QGLWidget to show the frames with the following code: glTexImage2D(GL_TEXTURE_2D, 0, (color ? GL_RGB8 : GL_LUMINANCE8), VIDEO_WIDTH, VIDEO_HEIGHT, 0, (color ? GL_RGB : GL_LUMINANCE),…
user2563661
  • 314
  • 1
  • 3
  • 13
0
votes
1 answer

Is it possible to vsync SDL_SetVideoMode?

I am trying to change the size of the window of my app with: mysurface = SDL_SetVideoMode(width, height, 32, SDL_OPENGL); Although I am using vsync swapbuffers (in driver xorg-video-ati), I can see flickering when the window size changes (I…
Weber K.
  • 320
  • 2
  • 11
1 2 3
10
11