From 39c42220fe383f5b2d4a5da2777017a2f33dc4b1 Mon Sep 17 00:00:00 2001 From: devl0rd Date: Wed, 29 Apr 2020 17:13:16 -0600 Subject: [PATCH] fixed overclock on fw 8+ --- SkyNX/source/main.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/SkyNX/source/main.c b/SkyNX/source/main.c index e63e222..28f7e2f 100644 --- a/SkyNX/source/main.c +++ b/SkyNX/source/main.c @@ -118,12 +118,14 @@ void startRender(VideoContext *videoContext) RenderContext *renderContext = NULL; VideoContext *videoContext = NULL; +ClkrstSession cpuSession; void init() { /* Init all switch required systems */ switchInit(); - pcvSetClockRate(PcvModule_CpuBus, 1785000000); //Overclock CPU - + clkrstInitialize(); + clkrstOpenSession(&cpuSession, PcvModuleId_CpuBus, 3); + clkrstSetClockRate(&cpuSession, 1785000000); renderContext = createRenderer(); videoContext = createVideoContext(); videoContext->renderContext = renderContext; @@ -137,7 +139,8 @@ void unInit() freeRenderer(renderContext); freeVideoContext(videoContext); unInitGyro(); - pcvSetClockRate(PcvModule_CpuBus, 1020000000); //Reset CPU clock to default + clkrstCloseSession(&cpuSession); //end OC + clkrstExit(); } int main(int argc, char **argv) {