![]() |
![]() |
#1 |
Registered User
Join Date: Aug 2008
Location: Spain
Posts: 527
|
Scroll not totally smooth with sound on FullScreen: known problem?
Hello there
I have often said I have got perfect, smooth scroll in chipset games, but it seems it's not totally true: if I activate sound, whatever sound ouput I activate and whatever settings, scroll gets ocasionally jumpy. I mean, scroll smoothness somewhat jumps every few seconds--- Tried with different buffer lenghts and delays...no difference. I've tried with vsync and without it; I've also tried different screen configs, and both custom 50Hz modes and 60Hz modes. There's no difference: activating sound causes imperfect screen refresh. I think it's a syncronization issue: some emulators are unable to sync graphics & sound properly. No difference between old versions or new betas: the issue has been there forever, it seems. Even Linux & Osx versions have the same issue... Fullscreen + Vsync makes it almost unnoticeable, but occasional jumps are still there (gianna sisters scroll demo, beast scroll demo, etc.) Fullscreen only makes it very noticeable in games that refresh the screen in every frame (like those mentioned). Do you know if it's fixable? Thanks! Last edited by Gaula92; 04 May 2009 at 00:40. |
![]() |
![]() |
#2 |
Junior Member
Join Date: Mar 2002
Location: Perth, Western Australia
Age: 50
Posts: 283
|
I can confirm that on my systems WinUAE and full screen + sound can achieve almost perfect 50hz scrolling with sound enabled, using full screen vsync and 100% emulated sound.
1. Standard video card with TV-OUT 720x576 - 50hz PAL display (Pentuim 4 2ghz) 2. ArcadeVGA video card at 352x288 50hz or 800x600 50hz RGB monitor in an acrade cabinet (Athon XP 1.8ghz) If you look really carefully you may see a slight jump every 15 or so seconds in full frame games (Gianna sisters, Turrican, etc) - but it is only by a couple of columns of pixels so I don't mind it. Be aware of other applications that you may have running in the background while running the emulator. I had a problem where the sound was slowing down occasionally (like playing a vinyl record and someone putting their finger on the turntable softly now and then) but it was due to another app that was checking for keyboard presses while WinUAE was running. If you're tying to troubleshoot problems try to test on a clean system without other non-operating system programs running at the same time. Perhaps you should try changing the sample rate? I remember years ago I came across an emulator (not WinUAE) that couldn't achieve smooth PAL 50hz scrolling unless I set the output sample rate to 22050 hz. Last edited by gary; 04 May 2009 at 08:18. |
![]() |
![]() |
#3 | |
Registered User
Join Date: Aug 2008
Location: Spain
Posts: 527
|
Quote:
My WinUAE test system is totally clear: it has NO processes stealing cpu cycles/capturing inputs. It's a minimal Windows without AV software/innececesary bloatware running in the background: only critical processes allowed there, no internet connection/resource provision...NOTHING. I've noticed the following: I can archieve PERFECT scroll with sound if I select the "primary sound device", with fullscreen+vsync. That causes sound pitch anomalies, as it syncronizes sound to graphics and it seems we haven't got the EXACT refresh rate expected by the emulated Amiga. I can also get PERFECT scroll if I select any other sound device, deactivate vsync (only fullscreen) and set the frame control to 61 or more. That causes gasps in sound however. It seems the emulator can sync on sound or sync on graphics, but not both at the same time. It's however possible, as SnesGT, Kega Fusion or pSX emulator do it for other systems...Other experiences? BTW: Is "100% accurate sound" related to sound sync somehow? What's the "ciaatod" setting for in the config files? Last edited by Gaula92; 04 May 2009 at 09:54. |
|
![]() |
![]() |
#4 | ||
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,573
|
Quote:
Quote:
|
||
![]() |
![]() |
#5 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,573
|
Something really important like hardware specs (full!) is missing..
EDIT: also enable onscreen leds and check SND%, does it stay stable or jump around? Last edited by Toni Wilen; 04 May 2009 at 10:05. |
![]() |
![]() |
#6 | |
Registered User
Join Date: Aug 2008
Location: Spain
Posts: 527
|
Quote:
Host system 1: 1.66Ghz Intel Atom 1GB DDR2 533Mhz RAM Gma950 chipset with integrated graphics Azalia ALC 888 sound chip (Realtek) Latest DirectX and drivers Windows XP Sp3 Host system 2 is similar, having a core2duo processor instead. Both system are perfectly capable for the most demanding Amiga emulation, including AGA games, without JIT. JIT is NEVER used in those tests. NTSC modes are used for those tests. As for emulated system specs, it's an Amiga 500 with ECS chipset: 68000 cpu Match A500 speed More Compatible no FPU ECS Agnus NTSC Chipset Extra: Generic No chipset options set (Inmediate blitter, cycle-exact, etc) Collision level: Sprites and Sprites Vs Playfield Sound emulation: Emulated, 100% Accurate Adv. Chipset: Compatible Settings ROM: 1.3 2Mb chip RAM 8MB Fast RAM Adf images of games are used, no HD Images Graphics: Primary screen controller FullScreen mode: 1024x768, 16bpp, 60Hz (NTSC) FullScreen + Vsync Refresh: Every frame FPS Adj is not active Centering none Line mode double Sound output: -Primary sound device: causes strange pich in sound (I am not talking about the high pitch caused by NTSC timing, but strange pitch; no gasps) -If I select ASIO sound, the sound quality is GREAT, but it causes those annoying scroll jumps. No gasps in sound, no high CPU usage. ASIO doesn't allow perfect graphics sync for some reason. Every frequency was tested. -Any other settings: similar results. Sound: enabled, 100% accurate Sound Buffer: 1 to max (no difference for this issue) CHannel mode: Stereo Frequency: 22050 to 48000 (no difference) Filter: disabled Interpolation: disabled Graphics filter: none (disabled for those tests) Miscelaneous: default settings except for On-screen leds, that are disabled. Priority & Extensions: default settings for those tests. WinUAE versions tested range from old versions to new betas. Do you need any other specs, Toni? Last edited by Gaula92; 04 May 2009 at 11:03. |
|
![]() |
![]() |
#7 |
Junior Member
Join Date: Mar 2002
Location: Perth, Western Australia
Age: 50
Posts: 283
|
Try increasing the priority of WinUAE when active to see if that help with your varying sound pitch problem. In my case while watching the emulation status squares on the bottom of the screen the far-left square (to the left of the CPU % figure) occasionally dipped in to a negative number, and when it did which ever samples currently playing would slow down in pitch then return to normal after the figure returned back to a positive number. Perhaps it represents the sound buffer level.
|
![]() |
![]() |
#8 |
Registered User
Join Date: Aug 2008
Location: Spain
Posts: 527
|
@gary: tried every priority available. It doesn't make a difference...anyway, sound is perfect in ASIO mode. Thanks for the idea, anyway!
|
![]() |
![]() |
#9 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,573
|
Sound pitch changes if sound sync drifts too much. This seems to be some OS/driver/whatever issue because I don't see it on my PC. (ASIO is probably much more accurate than DS, does also other portaudio modes work better than DirectSound?)
Solution probably is something (too) simple but as usual, I can't fix any (even simple) problem if I can't duplicate it myself ![]() |
![]() |
![]() |
#10 | |
Registered User
Join Date: Aug 2008
Location: Spain
Posts: 527
|
Toni: yes. Other portaudio modes don't have that strange pitch effect I get with DirectSound.
ASIO sounds perfect here, but it causes scroll jumps once in a while, and that's what I am trying to fix. I would be happy to use ASIO: but while it fixes the sound part, it brokes the graphics part. In other words: using ASIO seems to force sync on sound: that causes perfect sound but occasionally skippy graphics refresh. Are you sure using ASIO keeps the sync on VBlank?? I just don't get it. Maybe knowing a bit more about it can lend to a solution. Quote:
EDIT: will inform about snd% asap: I am at work and they'll be kicking me if I dedicate so much time to Amiga here! ![]() Last edited by Gaula92; 04 May 2009 at 13:23. |
|
![]() |
![]() |
#11 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,573
|
If vsync enabled: sync source is vsync. sound pitch is adjusted if it gets too far out of sync with gfx (dsound only). Other sound modes either cause sound glitches (if sound data underflow) or small pause(s) ("too much" sound data, new data from Paula emulation but no space in buffer)
Problem with syncing gfx and sound 100% perfectly is that there is always small difference between gfx and sound. (number of sound samples per frame is always some fractional number and it can/will change "randomly"..) I am not exactly sure how to solve this problem "correctly".. Perhaps I need to check some mediaplayer sources.. If vsync disabled: sync source is sound buffer level. |
![]() |
![]() |
#12 | ||
Registered User
Join Date: Aug 2008
Location: Spain
Posts: 527
|
Well, maybe I can help you.
I am a perfecctionist when it comes to emulators, so I've talked to other authors about video and audio sync. Another great emulator is Genesis Plus for GameCube. I KNOW, Toni, that you told me comparisions with another emulators aren't usefull, but this one had the same problem we've got here: those little differences between audio and video. It was perfect video with audio gaps, or perfect audio with occasional frame skips. Here's how Eek-Eek fixed it, and now we've got a perfect emulator: ME: Quote:
Quote:
|
||
![]() |
![]() |
#13 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,573
|
I think this could fix the problem, at least partially. I knew it had to be something too simple
![]() Will test later this week. |
![]() |
![]() |
#14 |
Registered User
Join Date: Aug 2008
Location: Spain
Posts: 527
|
Great!! Thanks, Toni! We're just a few steps away from the perfect Classic Amiga emulator!
![]() [Edit] As a racoon, I am verrrrry sensitive to occasional frame-desync, so count on me to test the solution! I can be hours looking at a scrolling scene to detect them! Last edited by Gaula92; 04 May 2009 at 16:31. |
![]() |
![]() |
#15 |
Zone Friend
Join Date: Oct 2006
Location: uk
Posts: 148
|
been reading this thread with massive interest, but im not as technically proficent as you lot !.
i always wondered why my emulated miggy stuff was not quite as smooth as real mig, but it was not so bad as to bother me too much. im gonna dig out my real mig and compare latest winuae, but i do seem to recall that older winuaes were a bit worse than later winuaes in this aspect, i think ? im gonna test the game 'monster business' (scrolling on this was quite jerky compared to the silky smooth scrolling on real mig) on old/new winuae. ps, the last reply by toni has got me very excited indeed ! |
![]() |
![]() |
#16 |
Registered User
Join Date: Aug 2008
Location: Spain
Posts: 527
|
me too, captain Kirk!
|
![]() |
![]() |
#17 |
Da Digger :)
Join Date: Nov 2008
Location: Monza, Italy
Posts: 2,822
|
VERY interesting!
|
![]() |
![]() |
#18 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,573
|
I think not everyone understand the point of this thread.
You already can have smooth scrolling. This fix/update only (possibly) removes random glitches and/or sound pitch changes. This is not your standard "what is vsync"/"how to use vsync" thread and won't become one. |
![]() |
![]() |
#19 |
Registered User
Join Date: Aug 2008
Location: Spain
Posts: 527
|
well, that's why I started this thread...
|
![]() |
![]() |
#20 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,573
|
http://files.winuae.net/beta/winuae.zip has some sound/vsync related "adjustments".. Please test
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
help me smooth scroll | rusty71 | support.WinUAE | 7 | 21 November 2011 15:36 |
LCD and smooth scrolling (not a 50Hz or a vsync problem) | aidenn | support.Other | 26 | 16 April 2010 18:20 |
E-UAE: are smooth and synced graphics & sound possible at the same time? | Gaula92 | support.OtherUAE | 2 | 16 December 2008 21:14 |
Problem with 1.3 using Fullscreen mode | Mangar | support.WinUAE | 1 | 03 August 2006 03:18 |
vsync+fullscreen+sound=crash (but only at startup?!) | gary | support.WinUAE | 0 | 25 June 2004 05:17 |
|
|