forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

"Best" recommendations for fastest runtime..

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
skeezixcodejedi



Joined: 30 Aug 2005
Posts: 29

PostPosted: Wed Aug 31, 2005 11:59 am    Post subject: "Best" recommendations for fastest runtime.. Reply with quote

I realize this is top of the flamebait, but its also something that needs to be nailed down good for everyone.. I did some searches and found numerous recommendations but not a concrete 'this is likely your best bet'. Please let me know if this is noted somewhere so I don't waste your time ;)

For instance.. I noticed a slowdown when I turned on some code that more or less boils down to "sceCtrlReadBufferPositive", so that may be a chokepoint (though it could be a few other things so I'm not saying for sure just yet.) In this case, rather than checking every 'frame' (its an emulator here), I'll check for inputs every couple frames to reduce the cost..

For fun, I cribbed some of the gcc optim flags I use in ARM code:
CFLAGS = -G0 -Wall -O2 -x none -msingle-float -funroll-loops -ffast-math -fsingle-precision-constant -ffunction-sections -fexpensive-optimizations -finline-functions -fomit-frame-pointer -ffast-math

(This is a subset; I use a tonne of ARM-specific optims there.)

Likewise, I'm turning the PSP clock up to 333; is this done correctly? Do I need to muck with the bus speeds or subsystem speeds at all? (I admit here, all I did was look in psppower.h for the first thing that sounded good ;)

scePowerSetCpuClockFrequency ( 333 );

Pound for pound, how well does the MIPS4000 (or whatever we've got here) rate to a similar ARM chip? ie: If we're running at 333MHz here, should it compare to a 300MHz ARM runtime? (ie: Pure computation, GPU aside.)

No need to go into logic code changes here; just 'out of band' things to set that can improve runtime speed.

Many thanks!

jeff
_________________
--
Have you played Atari today?
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group