Re: [stella] Object handler organisation

Subject: Re: [stella] Object handler organisation
From: Thomas Jentzsch <tjentzsch@xxxxxx>
Date: Thu, 07 Nov 2002 14:36:28 +0100
Manuel wrote:
>Once again more coding advice is needed.

Maybe instead of looping around the subroutines, separate loops 
inside would reduce the overhead a bit.

Or no subroutines at all, and just a big mess of code, where 
you check before each block (now subroutine) if it should be 
excecuted or not. This can be done by comparing the IDs 
directly or by using a table:

    LDY sprtsizetype,X
    LDA BlockTable,Y
    BEQ .skipBlock1
    ...             ; code for Block1 (e.g. GeneralMovement)
    BPL .loop       ; well, this will probably become a JMP :-)

This is how Thrust does it, but there is no general optimal 

If you are still running out of CPU time, you should try to 
schedule the jobs. E.g. you could call some subroutines only in 
odd and other only in even frames. This is what I'm doing 
(though a bit more complicated) in Thrust too. ;-)

Have fun!	

Archives (includes files) at
Unsub & more at

Current Thread