[Artigo] - VSync ON/OFF?

Dantas

Nerd Mór
Registrado
graphic card uses two buffers, one in which the image is calculated and another in which the image to be displayed is read. One image can only be displayed after being entirely calculated.

In Vsync OFF, when the graphic card has calculated the image in the buffer A, it directly inverts the A and B buffers, regardless of the eventuality that the buffer B was being read and about to be displayed. If this was the case, the image displayed would be half of the image n-1 and half of the image n. There are two different parts of the image and two different delays. Between two refreshing of the monitor several images might have been calculated if the graphic card and processors are very efficient. In this case, the delay coming from the graphic card is comprised between twice the image calculation time and one times the calculation time with a possible difference between the different pieces of the image displayed. It all depends on the power of the graphic card and processor.

In Vsync ON, this problem is avoided because the buffers A and B can be inverted only when the monitor has just been refreshed. When the graphic card has calculated the image in buffer A, it waits before reaching this point to invert buffers. Then buffer A becomes buffer B and vice versa. With a 60 Hz monitor, buffer B is read 60 times per second, but it doesn´t mean that it is updated 60 times per second! If the graphic card is still capable of calculating the image in less than 1/60th of second, it is perfect, the delay will always be 1/60th of a second. If the graphic card takes more time, it finishes the calculation after the monitor refreshment at the only moment when it can invert the buffer and will have to wait for the next refreshing. It means that the same image will be displayed two times. The first time, it will be 2/60th of a second late and the second time 3/60th of second. The problem is accentuated by the fact that the calculation time of an image is variable in the game and the delay can increase from 1/60th to 3/60th while the scene progresses. This can lead to a significant delay in addition to the framerate disruption. In Vsync ON, it is crucial to have a system capable of ensuring fps at least as high as the refreshing rate. We don´t decrease from 60 to 50 FPS but directly from 60 to 30 even if the average can mask it.

It is also helpful to understand that the game engine has a role to play and that triple buffering can reduce the shifting that happens in VSync ON at the expense of a higher generalised delay.

All this to say that you can complicate the calculation by changing the initial parameters. If you think this is fun, you can start all over again and estimate that the graphic card won´t sustain a framerate of 60 or 100 fps in the following examples. I took the first option.

Fonte: http://www.behardware.com
 
Resumo da Ópera: Use somente Vsync se você tiver a garantia que teu sistema sempre consegue uma taxa de atualização por parte da placa de vídeo e processador mais alta que a taxa de atualização do monitor. Caso contrário acontece delay e este se torna maior por causa do Vsync.

Com o Vsync desligado, vc pode estar vendo uma imagem que contêm partes de um frame anterior e partes do frame atual, porque essa troca de buffer não é coordenada com o monitor, ele vai atualizando e jogando o mais rápido que puder na tela, e a tela em sí pode não acompanhar isso.
 
Resumo da Ópera: Use somente Vsync se você tiver a garantia que teu sistema sempre consegue uma taxa de atualização por parte da placa de vídeo e processador mais alta que a taxa de atualização do monitor. Caso contrário acontece delay e este se torna maior por causa do Vsync.

Com o Vsync desligado, vc pode estar vendo uma imagem que contêm partes de um frame anterior e partes do frame atual, porque essa troca de buffer não é coordenada com o monitor, ele vai atualizando e jogando o mais rápido que puder na tela, e a tela em sí pode não acompanhar isso.

opa, blz

correto!!!!!!, so vale ativar o vsync se o sistema segurar acima de 60frames SEMPRE ou acima da atualização do monitor, algo por perto de 85hz, na maioria dos monitores!!

bom topico, merece ser destacado!!!

falow
 
ta meio errado isso ae cara, eu tinha um monitor de 15 da philips q só funfava a 60HZ, com o Vsync desligado era uma desgraça a tela parecia q quebrava em tres qnd tinha muito movimento ou luz, qnd ligava ficava perfeitinhu
 
Eu só uso vsync quando o jogo fica com mto corte horizontal na tela , acho q melhora bastante quando ativa
 
Pois é, mal aew yaesir, acabei não lendo o teu tópico (^^), mas desta maneira todo mundo sai ganhando, embora o que eu tenha postado seja mais incompleto que sua informação, os usuários mais exigentes já sabem onde procurar :music:
 
iuhauhiaua "nerd mor" :D


Bem, a unica coisa que sei que VSync ligado é muito mais suave jogar um game...se o PC consegue. Mais se n for...dah umas quedas bizarras! :eek:
 

Users who are viewing this thread

Voltar
Topo