English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 07 January 2008, 12:07   #1
cybermat
GoalScoringSuperstarHero
 
Join Date: Jan 2008
Location: ITALY - Milan
Age: 39
Posts: 59
When i Enable Vsync, audio is not synchronized

Hi all,

i read a lot of topics with similar issues. I would like to explain my issue.

Winuae 1.4 stable version
Filter : Direct3d , bilinear 16bit
Fullscreen + Vsync (to get the scrolling smooth without tearing)
Soundbuffer : 4
LCD Samsung 930bf : 60hz (the only one option available, i think that i can't set 50hz with this LCD... i will try with powerstrip, i don't want to damage my LCD monitor)

With this configuration , the sounds is played just a bit later than video.

I think that the problem is related to the reresh rate, as enabling Vsync it is forced to 60hz, the audio and video runs with different speed (correct me if i'm wrong)

Firstly i would like to know if it's an expected behaviour and not a real issue.

Second i would like to receive feedback about this strange "workaround" i implemented. I set the audio buffer to "1" or "2" and it seems that now the audio and video are full synched. I think that reducing the sound buffer i could encounter some problems during the moments of major cpu workload.... It's already happened during a Session of Ruff'n'Tumble.

So if you reached this point , i'd like to hear from you

Any chance to solve this issue? Should i come back to my previous CRT?
cybermat is offline  
Old 07 January 2008, 13:19   #2
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 44
Posts: 23,362
Smaller the sound buffer, smaller the delay but sound problems can happen more regularly (too many variables, host cpu speed, windows version, sound card, sound card driver etc..)

VSync makes syncing more difficult. "Bonus" feature is 100% CPU usage because most/all display drivers busy loop while waiting for vsync..

Vsync on: sound is synced to video. Requires very exact sound timing (or bigger buffer)

Vsync off: sound and video is synced to 'clock'. "Sync" is quite relaxed, nobody notices if framerate isn't exactly 50fps, everyone notices if sound pops or breaks.

(Sync means "external" video/sound sync. Emulated program don't see any difference.)
Toni Wilen is offline  
Old 07 January 2008, 14:12   #3
cybermat
GoalScoringSuperstarHero
 
Join Date: Jan 2008
Location: ITALY - Milan
Age: 39
Posts: 59
Quote:
Originally Posted by Toni Wilen View Post
Smaller the sound buffer, smaller the delay but sound problems can happen more regularly (too many variables, host cpu speed, windows version, sound card, sound card driver etc..)

VSync makes syncing more difficult. "Bonus" feature is 100% CPU usage because most/all display drivers busy loop while waiting for vsync..

Vsync on: sound is synced to video. Requires very exact sound timing (or bigger buffer)

Vsync off: sound and video is synced to 'clock'. "Sync" is quite relaxed, nobody notices if framerate isn't exactly 50fps, everyone notices if sound pops or breaks.

(Sync means "external" video/sound sync. Emulated program don't see any difference.)
Ok thanks, but how can i avoid the tearing issues with scrolling games? Vsync helps to do this.
I have a p4 2.8 ghz. Maybe Winuae requires much more power in order to get audio and video synched with Vsync enabled?

Thanks!

Last edited by cybermat; 07 January 2008 at 15:21.
cybermat is offline  
Old 07 January 2008, 21:26   #4
cybermat
GoalScoringSuperstarHero
 
Join Date: Jan 2008
Location: ITALY - Milan
Age: 39
Posts: 59
I think to have "solved", i put 2 as sound buffer and the sound is synchronized even if i put the Vsync, Direct3d with bilinear filter.

I noticed that if i put WITHOUT vsync enabled, the sound buffer to 7 i have a delay of audio than the video.

Maybe i have some problems with my PC configuration.

Thanks.
cybermat is offline  
Old 07 January 2008, 22:29   #5
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 44
Posts: 23,362
VSync seems to be very PC specific.Very difficult to help when everyone seems to have slightly different VSync problems
Toni Wilen is offline  
Old 07 January 2008, 23:10   #6
Tony Landais
Zone Friend
 
Join Date: Mar 2003
Location: uk
Posts: 426
Quote:
Originally Posted by Toni Wilen View Post
VSync seems to be very PC specific.Very difficult to help when everyone seems to have slightly different VSync problems
hehe I am still trying but so far I still haven t seen any good Vsync on windows
Tony Landais is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
CyberbugfixAGA - how to enable Bloodwych project.ClassicWB 81 23 October 2016 21:35
50hz Vsync causing audio problems WDeranged support.WinUAE 16 02 October 2009 03:00
VSync delays audio mr.vince support.WinUAE 11 26 November 2008 22:15
Preload/S WHD how do i enable this ???? synchro Amiga scene 6 03 October 2004 15:37
Sound get un-synchronized from video on AVI trance007 support.WinUAE 12 17 August 2003 21:47

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 00:03.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.
Page generated in 0.06409 seconds with 13 queries