#153078 - NeX - Mon Mar 24, 2008 8:31 pm
I'm back coding SandScape again. I've decided to move the simulation to the ARM7 because of the reduced memory latencies. I've got a fairly crude system working - is there a quicker/more efficient way of doing this?
ARM7 writes and reads VRAM bank D for high speed, low latency random access.
When it finishes its business, it copies the data to VRAM C.
ARM9 then gets access, and puts it on the screen.
ARM7 continues working on VRAM D, and VRAM C is handed back. Repeat.
The data is roughly 50kb, so I don't think the IPC is really up to this. This would be happening 30 times a second. This looks to be the fastest way, if complicated. I know it's working because I've got some ARM7 code changing the BG palette.
_________________
Strummer or Drummer?.
Or maybe you would rather play with sand? Sandscape is for you in that case.
ARM7 writes and reads VRAM bank D for high speed, low latency random access.
When it finishes its business, it copies the data to VRAM C.
ARM9 then gets access, and puts it on the screen.
ARM7 continues working on VRAM D, and VRAM C is handed back. Repeat.
The data is roughly 50kb, so I don't think the IPC is really up to this. This would be happening 30 times a second. This looks to be the fastest way, if complicated. I know it's working because I've got some ARM7 code changing the BG palette.
_________________
Strummer or Drummer?.
Or maybe you would rather play with sand? Sandscape is for you in that case.