19 April 2010, 11:04 | #1 |
gone
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
|
Less than 50 fps...?
Good morning people.
If I have an effect that will run in 50fps (or 60fps - hi there NTSC guys ) then I can do what I do now and just have a copper triggered level 3 interrupt for it and everything's nicely synced with the display. But, what happens when an effect won't run in 50fps and I need more time...? What are the strategies for syncing with the display while running at a lower frame rate...? As always, apologies if this is a really stupid question. |
19 April 2010, 11:10 | #2 | |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
Quote:
Code:
LOOP bsr WaitRaster bsr lame_and_slow_effect ; ;D btst #6,$bfe001 bne.b LOOP rts WaitRaster .wait move.l $dff004,d0 and.l #$1ff00,d0 cmp.l #303<<8,d0 ; 303 = line to wait for bne.b .wait rts |
|
19 April 2010, 11:18 | #3 | ||
gone
Join Date: Apr 2007
Location: completely gone
Posts: 1,596
|
Quote:
Quote:
I just read those and roared with laughter - thanks man. Let me assure you that this is hypothetical slow effect! I was just interested in what to do in this situation. While we're on the subject of waiting for vbl - I understand your wait for vbl code just fine (in fact, thanks to your generosity it's the identical routine that's now part of my standard code ) but where did you get line 303 from...? Again this is probably a very stupid question and I just didn't read the HRM properly or something but where is it stated that line 303 == start of vbl...? |
||
19 April 2010, 11:20 | #4 |
Zone Friend
Join Date: Apr 2006
Location: Gothenburg/Sweden
Age: 48
Posts: 339
|
Just curious, is that WaitVbl-code valid for both NTSC/PAL Amigas?
|
19 April 2010, 11:59 | #5 | |
move.l #$c0ff33,throat
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
|
Quote:
No, it's PAL only. |
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
The Best Amiga 3D FPS | Steve | Retrogaming General Discussion | 112 | 22 November 2015 16:28 |
ADoom FPS | W4r3DeV1L | support.Games | 5 | 09 December 2008 15:56 |
RTG FPS Question | Ed Cruse | support.WinUAE | 5 | 28 October 2008 17:07 |
200 % fps | turrican3 | request.UAE Wishlist | 13 | 30 July 2008 18:34 |
FPS Adjustment | Crow777 | support.WinUAE | 1 | 07 July 2008 00:47 |
|
|