| View previous topic :: View next topic |
| Author |
Message |
homemister
Joined: 24 Mar 2008 Posts: 25
|
Posted: Wed Sep 03, 2008 5:42 pm Post subject: PSP Optimasations |
|
|
Hey all,
I was posting this to ask about code optimizations of the psp. This can include gcc compiler optimizations.
Regards
Homemister |
|
| Back to top |
|
 |
J.F.
Joined: 22 Feb 2004 Posts: 2906
|
Posted: Wed Sep 03, 2008 6:32 pm Post subject: |
|
|
| One I'll mention here is avoid flushing the caches. You'll see code from some folks that flush the dcache every single rendered frame. That DESTROYS your speed. Rather, put all the graphics stuff you're using into uncached space (addr | 0x40000000). This goes for framebuffers too, both onscreen or off. For example, one of the BIGGEST speed-ups for Wolf3D for the PSP was to use (framebuffer | 0x40000000) instead of (framebuffer) for all the drawing routines. Drawing to a framebuffer that is cached floods the caches, making the program slower than it would be if you used an uncached framebuffer. |
|
| Back to top |
|
 |
sturatt
Joined: 13 Jul 2006 Posts: 46
|
Posted: Thu Sep 04, 2008 12:02 am Post subject: |
|
|
| J.F. wrote: | | One I'll mention here is avoid flushing the caches. You'll see code from some folks that flush the dcache every single rendered frame. That DESTROYS your speed. Rather, put all the graphics stuff you're using into uncached space (addr | 0x40000000). This goes for framebuffers too, both onscreen or off. For example, one of the BIGGEST speed-ups for Wolf3D for the PSP was to use (framebuffer | 0x40000000) instead of (framebuffer) for all the drawing routines. Drawing to a framebuffer that is cached floods the caches, making the program slower than it would be if you used an uncached framebuffer. |
that's good to know, thanks J.F. |
|
| Back to top |
|
 |
|