commit 647ae0ab2fc992141228386f518edfe28f2bffa5
Author: jtothebell <j.to.the.bell@gmail.com>
AuthorDate: Fri Apr 2 15:18:46 2021 -0600
Commit: jtothebell <j.to.the.bell@gmail.com>
CommitDate: Fri Apr 2 15:18:46 2021 -0600
Overclock vita cpu and gpu
---
platform/vita/Makefile | 2 +-
platform/vita/source/VitaHost.cpp | 6 ++++++
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/platform/vita/Makefile b/platform/vita/Makefile
index eeb834d..5281040 100644
--- a/platform/vita/Makefile
+++ b/platform/vita/Makefile
@@ -8,7 +8,7 @@ PHONY := all package clean
SOURCES := ${SOURCES} source
INCLUDES := ${INCLUDES}
-LIBS = -lSDL2 -lSceDisplay_stub -lSceCtrl_stub -lSceAudio_stub \
+LIBS = -lSDL2 -lScePower_stub -lSceDisplay_stub -lSceCtrl_stub -lSceAudio_stub \
-lSceSysmodule_stub -lSceGxm_stub -lSceCommonDialog_stub \
-lSceAppMgr_stub -lSceTouch_stub -lSceHid_stub -lSceMotion_stub -lm
diff --git a/platform/vita/source/VitaHost.cpp b/platform/vita/source/VitaHost.cpp
index e9d1afa..f114b5f 100644
--- a/platform/vita/source/VitaHost.cpp
+++ b/platform/vita/source/VitaHost.cpp
@@ -16,6 +16,7 @@ using namespace std;
#include <psp2/kernel/processmgr.h>
#include <psp2/io/fcntl.h>
+#include <psp2/power.h>
// sdl
#include <SDL2/SDL.h>
@@ -198,6 +199,11 @@ void Host::oneTimeSetup(Color* paletteColors, Audio* audio){
targetFrameTimeMs = 0;
_paletteColors = paletteColors;
+
+ scePowerSetArmClockFrequency( 444 );
+ scePowerSetBusClockFrequency( 222 );
+ scePowerSetGpuClockFrequency( 222 );
+ scePowerSetGpuXbarClockFrequency( 166 );
}
void Host::oneTimeCleanup(){