Functions | |
int | oslBenchmarkTestEx (int startend, int slot) |
int | oslMeanBenchmarkTestEx (int startend, int slot) |
int | oslBenchmarkTest (int startend) |
void | oslSysBenchmarkDisplay () |
int | oslShowSplashScreen (int splashType) |
int oslBenchmarkTestEx | ( | int | startend, | |
int | slot | |||
) |
Does a benchmark action.
startend |
| |
slot | 0-3: User slots 4-7: System slots (4 contains the CPU load in percent if you multiply its value by 6 and divide by 1000) |
int oslMeanBenchmarkTestEx | ( | int | startend, | |
int | slot | |||
) |
Same as oslBenchmarkTestEx but does a mean of 20 samples before returning a value.
int oslBenchmarkTest | ( | int | startend | ) | [inline] |
Does a benchmark in the slot 0. Easier for testing.
void oslSysBenchmarkDisplay | ( | ) |
Displays the system benchmark results on the top-left corner of the screen. Useful for debugging: you know that if the first number approaches or exceeds 16.6 then your game has insufficient performance (for 60 fps).
int oslShowSplashScreen | ( | int | splashType | ) | [inline] |
Shows one of the predefined splash screens in OldSchool Library.
splashType |
|
int main(void) { //Init oslib. oslInit(0); oslInitGfx(OSL_PF_8888, 1); //Show our splash screen oslShowSplashScreen(1); //Begin our game [...]
Warning: This function tries to load images files located on your memory stick. It will do nothing if they are not present. But if your application is running in kernel mode and you are creating an user thread, your thread will not have a default running directory, making this function to always fail! You should always set a working folder (e.g. with sceIoChdir) before calling this functions!
These files can be found in the Resource folder of your OSLib distribution.