English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 27 February 2023, 11:24   #1
LeCaravage
Registered User
 
LeCaravage's Avatar
 
Join Date: May 2017
Location: AmigaLand
Posts: 459
Switch 60hz on PAL machine

Hello,

Context : Amiga 500 KS1.3 (512/512Ko).

I tried the game Wings of death and I noticed the display frequency is 60hz even if the game is from Europe (so PAL native I guess).
It's cool, because you've got a nice arcade feeling, plus the animations are smoother even at 30hz (compared to 25hz).
As my Amiga is OCS, I guess there's a trick with copper or something like which allows to switch monitor display to 60hz.

So my question is :

Does the program lose cycles if your PAL Amiga displays NTSC compared to a PAL display ?
LeCaravage is offline  
Old 27 February 2023, 12:11   #2
alexh
Thalion Webshrine
 
alexh's Avatar
 
Join Date: Jan 2004
Location: Oxford
Posts: 14,463
Quote:
Originally Posted by LeCaravage View Post
As my Amiga is OCS, I guess there's a trick with copper or something like which allows to switch monitor display to 60hz.
I think it uses a CIA timer interrupt to trigger the CPU to re-write VPOSW to fake 60Hz.

Quote:
Originally Posted by LeCaravage View Post
Does the program lose cycles if your PAL Amiga displays NTSC compared to a PAL display ?
Yes.
alexh is offline  
Old 27 February 2023, 12:12   #3
Snoopy1234
Registered User
 
Snoopy1234's Avatar
 
Join Date: Apr 2022
Location: Australia
Age: 52
Posts: 897
iirc the NTSC titles on a PAL machine are running slower than a native NTSC machine because the clock frequency of the cpu is tied into either PAL or NTSC despite the display frequency.
Snoopy1234 is offline  
Old 27 February 2023, 13:03   #4
ross
Defendit numerus
 
ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 54
Posts: 4,491
Quote:
Originally Posted by alexh View Post
I think it uses a CIA timer interrupt to trigger the CPU to re-write VPOSW to fake 60Hz.
A Copper IRQ (at level 3) is being used; the CIA IRQ would be a bit too imprecise and out of sync with the electron beam (and also phase dependent).*
Not that it's impossible with CIA, but a little more complex and slow.
The rest is right

EDIT: * just checked, it's done 'the slow way'..
In practice, when the IRQ is triggered, it waits a defined position polling the beam, recalculates with a CPU sync and then rewrites VPOSW.
This way syncing with the Copper is useless, so even an IRQ with the CIA would have been fine...


Quote:
Originally Posted by Snoopy1234 View Post
iirc the NTSC titles on a PAL machine are running slower than a native NTSC machine because the clock frequency of the cpu is tied into either PAL or NTSC despite the display frequency.
This has nothing to do with the question.
Here we are dealing with using a video frequency of 60Hz on a PAL machine (therefore effectively a PAL60 signal).
The same thing done on an NTSC machine (so a 60Hz without tricks and with NTSC frames) would have practically the same effect and speed for the game (an imperceptible difference, <1%).

Last edited by ross; 27 February 2023 at 13:42.
ross is offline  
Old 27 February 2023, 13:21   #5
Snoopy1234
Registered User
 
Snoopy1234's Avatar
 
Join Date: Apr 2022
Location: Australia
Age: 52
Posts: 897
Quote:
Originally Posted by ross View Post


This has nothing to do with the question.
Here we are dealing with using a video frequency of 60Hz on a PAL machine (therefore effectively a PAL60 signal).
The same thing done on an NTSC machine (so a 60Hz without tricks and with NTSC frames) would have practically the same effect and speed for the game (an imperceptible difference, <1%).

You are correct. I didn't read the question other than losing cycles. I assumed a game programmed for NTSC would in turn be programmed to run at the faster clock frequency.
Snoopy1234 is offline  
Old 04 March 2023, 21:17   #6
LeCaravage
Registered User
 
LeCaravage's Avatar
 
Join Date: May 2017
Location: AmigaLand
Posts: 459
Too bad we lose some cycles because for pure arcade 2D games feeling, this NTSC display rocks.

Last edited by LeCaravage; 04 March 2023 at 21:50.
LeCaravage is offline  
Old 04 March 2023, 22:19   #7
ross
Defendit numerus
 
ross's Avatar
 
Join Date: Mar 2017
Location: Crossing the Rubicon
Age: 54
Posts: 4,491
Quote:
Originally Posted by LeCaravage View Post
Too bad we lose some cycles because for pure arcade 2D games feeling, this NTSC display rocks.
Unfortunately it's not "some" but a lot of cycles..
If you compare long frames, in PAL50 you have 71051 cycles, in PAL60 59701.

Also they are 'good' cycles, i.e. with little or no DMA competition for the display, as a wider border is usually used in PAL50.
ross is offline  
Old 04 March 2023, 22:47   #8
LeCaravage
Registered User
 
LeCaravage's Avatar
 
Join Date: May 2017
Location: AmigaLand
Posts: 459
Quote:
Originally Posted by ross View Post
Unfortunately it's not "some" but a lot of cycles..
If you compare long frames, in PAL50 you have 71051 cycles, in PAL60 59701.

Also they are 'good' cycles, i.e. with little or no DMA competition for the display, as a wider border is usually used in PAL50.
Gosh, I must confess I didn't suspect so much difference.
LeCaravage 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
PAL games @60Hz with slower sound john4p request.UAE Wishlist 6 20 September 2022 23:19
CD32 - Is NTSC/PAL switch and 50/60 switch possible? missyrelm Hardware mods 71 13 January 2019 05:21
A500 NTSC/PAL switch Amiga1992 support.Hardware 32 25 May 2018 14:42
How to switch PAL Rev 6A A500 between PAL/NTSC? BarryB support.Hardware 10 03 August 2016 14:41
Does not switch to PAL-HD modes Leandro Jardim support.WinUAE 4 05 July 2013 03:20

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 03:05.

Top

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