|
Atari coding BBS
Optimizing for Supervidel |
Posted by: evil
|
Jul,12.2013-18:25
|
After doing a little benchmark test of various ways to draw graphics-effects to Supervidel memory I learned that taking advantage of the Supervidel is very easy.
Here are a few steps to take, assuming we're playing with 256 colours and c2p (like most Falcon 060 demos or games do).
1. Reserve ST-ram with Mxalloc() as usual, make sure to even the screen address to at least 16 byte boundary (easiest to just make it 256 byte boundary as usual from the ST time)
2. or.l #$a0000000,d0 ;d0=the even screen address, this will kick it up to SV-ram instead of ST-ram. Set screenpointer to this address and use it as destination for the move16 copy
3. Setup your screen in 8-bitplane mode as usual on the Falcon
4. bset #12,$ffff8266.w ;this changes the bitplanes to become chunky on the Supervidel
5. Make sure your Fastram chunky buffer is also aligned on at least 16 byte boundary
6. Replace your c2p pass with a move16 pass, move16 is very simple:
move16 (a0)+,(a1)+ ;copies 16 bytes
That's it.
From my simple test with a 320x240 tunnel effect, the speed increased from 50 FPS (Fastram chunky -> ST-ram with c2p) to 90 FPS with the method explained above. And that's just a few minutes of work to implement. Of course a more complex effect or game will not gain as much on the whole, but it's still a big optimization with very little work involved.
Next; optimizing with SuperBlitter. No, just kidding. That's a whole other beast that will take a long time to experiment with :)
--
Anders Eriksson
ae@dhs.nu
|
[All messages in this thread] [Start new thread]
Topic
|
Posted by
|
Date
|
Optimizing for Supervidel
|
evil
|
Jul,12.2013-18:25
|
Re: Optimizing for Supervidel
|
gwEm
|
Jul,12.2013-19:34
|
Re: Optimizing for Supervidel
|
sqward
|
Jul,13.2013-03:35
|
Re: Optimizing for Supervidel
|
mikro
|
Jul,13.2013-06:54
|
Re: Optimizing for Supervidel
|
evil
|
Jul,13.2013-12:38
|
Re: Optimizing for Supervidel
|
evil
|
Jul,13.2013-14:07
|
Re: Optimizing for Supervidel
|
PeP
|
Jul,13.2013-23:02
|
Re: Optimizing for Supervidel
|
deez
|
Jul,14.2013-12:19
|
Re: Optimizing for Supervidel
|
deez
|
Jul,14.2013-12:49
|
Re: Optimizing for Supervidel
|
PeP
|
Jul,14.2013-18:27
|
Re: Optimizing for Supervidel
|
PeP
|
Jul,15.2013-14:21
|
What's the anti-troll code? That's your personal code to be able to add comments and messages on the dhs.nu site.
Don't have a code or forgot it? Fix it here.
|