mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-17 19:34:39 +01:00
Custom Fps Limiter
First time contributing. Set FPS limit on second page of graphics settings. Press Tab key or on 360 controller, press left stick to toggle between 3 states.
This commit is contained in:
1 parent
6048f11f9f
commit
e7622ebbd6
7 files changed
+430
-377
No files matched your search
+23
-4
@@ -214,11 +214,30 @@ void EmuScreen::update(InputState &input) {
|
||||
__CtrlSetAnalog(stick_x, stick_y, 0);
|
||||
__CtrlSetAnalog(rightstick_x, rightstick_x, 1);
|
||||
|
||||
if (input.pad_buttons & PAD_BUTTON_LEFT_THUMB) {
|
||||
PSP_CoreParameter().unthrottle = true;
|
||||
} else {
|
||||
PSP_CoreParameter().unthrottle = false;
|
||||
//if (input.pad_buttons & PAD_BUTTON_LEFT_THUMB) {
|
||||
// PSP_CoreParameter().unthrottle = true;
|
||||
//} else {
|
||||
//PSP_CoreParameter().unthrottle = false;
|
||||
//}
|
||||
// Make sure fpsLimit starts at 0
|
||||
if (PSP_CoreParameter().fpsLimit != 0 && PSP_CoreParameter().fpsLimit != 1 && PSP_CoreParameter().fpsLimit != 2) {
|
||||
PSP_CoreParameter().fpsLimit = 0;
|
||||
}
|
||||
//Toggle between 3 different states of fpsLimit
|
||||
if (input.pad_buttons_down & PAD_BUTTON_LEFT_THUMB) {
|
||||
if (PSP_CoreParameter().fpsLimit == 0){
|
||||
PSP_CoreParameter().fpsLimit = 1;
|
||||
}
|
||||
else if (PSP_CoreParameter().fpsLimit == 1){
|
||||
PSP_CoreParameter().fpsLimit = 2;
|
||||
}
|
||||
else if (PSP_CoreParameter().fpsLimit == 2){
|
||||
PSP_CoreParameter().fpsLimit = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
if (input.pad_buttons_down & (PAD_BUTTON_MENU | PAD_BUTTON_BACK | PAD_BUTTON_RIGHT_THUMB)) {
|
||||
if (g_Config.bBufferedRendering)
|
||||
|
||||
Reference in new issue
Block a user