English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 04 August 2024, 15:41   #1
Gaula92
Registered User
 
Gaula92's Avatar
 
Join Date: Aug 2008
Location: Spain
Posts: 529
What's vertical sync rate derived from in WinUAE?

Hello there,

I've noticed that, to get perfectly synchronized screen refresh when emulating a NTSC Amiga in Amiberry 6.x sources ("preview" branch), which are based on the latest WinUAE, I need to set a physical video mode of exactly 59.940059 Hz.

In other words, using a 60.000000 Hz mode results on small hiccups every 10-20 seconds due to the small discrepancy between the emulated Amina NTSC system vertical sync rate and the physical host refresh rate.

I know it's a well known NTSC vertical sync rate (apparently derived from 60*1000/1001, where 1001 was historically chosen to ajust the vertical syn freq down to create an space needed for the color signal without interfering the audio signal), but where are those ~59.94 Hz derived from in the WinUAE sources?

Also, would it be possible to sync to host refresh instead? Having a 59.94 Hz video mode automatically set on modern displays isn't that common...

Thanks!
Gaula92 is offline  
Old 04 August 2024, 15:47   #2
TCD
HOL/FTP busy bee
 
TCD's Avatar
 
Join Date: Sep 2006
Location: Germany
Age: 46
Posts: 32,417
I would guess from this: https://en.wikipedia.org/wiki/NTSC#R...d_refresh_rate
Quote:
This, as mentioned, is how the NTSC field refresh frequency worked in the original black-and-white system; when color was added to the system, however, the refresh frequency was shifted slightly downward by 0.1%, to approximately 59.94 Hz, to eliminate stationary dot patterns in the difference frequency between the sound and color carriers (as explained below in § Color encoding).
TCD is online now  
Old 04 August 2024, 16:29   #3
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,598
Tick Display panel Settings area bottom right checkbox and then fill the text box with refresh rate you want. This keeps the rate static.

Amiga refresh rate normally depends on mode: interlaced is 50/60Hz, non-lace is slightly less (long field). or slightly more (short field).
Toni Wilen is offline  
Old 07 August 2024, 12:03   #4
Gaula92
Registered User
 
Gaula92's Avatar
 
Join Date: Aug 2008
Location: Spain
Posts: 529
Quote:
Originally Posted by Toni Wilen View Post
Tick Display panel Settings area bottom right checkbox and then fill the text box with refresh rate you want. This keeps the rate static.

Amiga refresh rate normally depends on mode: interlaced is 50/60Hz, non-lace is slightly less (long field). or slightly more (short field).

Ah, yes! I adjusted to my monitor in-use exact refresh rate using that and it works.
But the problem with that is that the number of generated audio samples isn't adjusted, so for example if a game runs at 59.xxxx Hz and I adjust the frame rate to 60.000000 Hz, too few samples are generated and the audio occasionally "skips". Totally expected.


So... Is there an option for number-of-audio-samples compensation for framerate adjustment?
That would allow perfect audio and video synchronization at last.
Gaula92 is offline  
Old 07 August 2024, 12:40   #5
malko
Ex nihilo nihil
 
malko's Avatar
 
Join Date: Oct 2017
Location: CH
Posts: 5,124
Quote:
Originally Posted by TCD View Post
Looks like we have the same readings

Edit : NTSC : Never Twice the Same Colour.

Last edited by malko; 07 August 2024 at 17:32.
malko 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
Using Winuae and G-Sync Shadowfire support.WinUAE 13 04 April 2021 17:27
Cybervision 64 vertical refresh rate trixster support.Hardware 5 04 October 2018 20:38
Sync to refresh rate jbl007 support.FS-UAE 7 19 April 2013 22:12
[Found: Stellaryx] Asteroids derived game Kludgy Looking for a game name ? 2 21 February 2010 09:17
vertical sync flickers PiCiJi support.WinUAE 2 25 September 2004 14:34

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 15:11.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.14009 seconds with 15 queries