[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Fast tile renderer



On Monday, June 10, 2013 12:48:12 PM UTC-5, Antoine Vignau wrote:
> Interesting code, thanks for sharing.
> 
> 
> 
> I would make a second lookupHi table with values minus #$1C to remove the SEC SBC #$1C code.
> 
> 
> 
> I wonder whether your sprites should be aligned, I cannot say right now if you lose a cycle if they are not aligned or if you cross a page.
> 
> 
> 
> Antoine

It would incur a 1-cycle penalty (so up to 16 cycles slower) if a tile overlaps a page boundary.  Since the tiles are 32 bytes in size, I can fit 8 in a page neatly, so no harm there...

Good catch!

-B