#135294 - simonjhall - Sat Jul 21, 2007 11:41 pm
Hi guys,
I've been trying to improve performance by enabling data caching for slot-2 RAM...but I've been having no luck.
After looking through ds/ds_arm9_crt0.s I can see that the gba slot is set up as protection region three with this:
After looking again at that file, gbatek and the ARM reference manual I ought to be able to turn on data caching for that region with just
but this does nothing for performance. In fact I think it may actually make it very slightly worse...
In sure I'm limited by the performance of that memory, as the game has taken a turn for the worse since moving wholly to slot-2 memory. Plus, if I just decrease the memory wait states performance increases by 25%.
Any hints as to what I'm doing wrong?
[Clarified subject. FA means "fantastic attack", or an attempt to make all steps with perfect timing, in the In The Groove community. -- MOD]
_________________
Big thanks to everyone who donated for Quake2
I've been trying to improve performance by enabling data caching for slot-2 RAM...but I've been having no luck.
After looking through ds/ds_arm9_crt0.s I can see that the gba slot is set up as protection region three with this:
Code: |
@-------------------------------------------------------------------------
@ Region 3 - DS Accessory (GBA Cart) @------------------------------------------------------------------------- ldr r0,=( PAGE_128M | 0x08000000 | 1) mcr p15, 0, r0, c6, c3, 0 |
After looking again at that file, gbatek and the ARM reference manual I ought to be able to turn on data caching for that region with just
Code: |
ldr r0,=0b00001110
mcr p15, 0, r0, c3, c0, 0 |
In sure I'm limited by the performance of that memory, as the game has taken a turn for the worse since moving wholly to slot-2 memory. Plus, if I just decrease the memory wait states performance increases by 25%.
Any hints as to what I'm doing wrong?
[Clarified subject. FA means "fantastic attack", or an attempt to make all steps with perfect timing, in the In The Groove community. -- MOD]
_________________
Big thanks to everyone who donated for Quake2