mirror of
https://github.com/DevL0rd/SkyNX
synced 2025-02-16 09:18:24 +00:00
fixed overclock on fw 8+
This commit is contained in:
parent
b0b871c076
commit
39c42220fe
1 changed files with 6 additions and 3 deletions
|
@ -118,12 +118,14 @@ void startRender(VideoContext *videoContext)
|
||||||
|
|
||||||
RenderContext *renderContext = NULL;
|
RenderContext *renderContext = NULL;
|
||||||
VideoContext *videoContext = NULL;
|
VideoContext *videoContext = NULL;
|
||||||
|
ClkrstSession cpuSession;
|
||||||
void init()
|
void init()
|
||||||
{
|
{
|
||||||
/* Init all switch required systems */
|
/* Init all switch required systems */
|
||||||
switchInit();
|
switchInit();
|
||||||
pcvSetClockRate(PcvModule_CpuBus, 1785000000); //Overclock CPU
|
clkrstInitialize();
|
||||||
|
clkrstOpenSession(&cpuSession, PcvModuleId_CpuBus, 3);
|
||||||
|
clkrstSetClockRate(&cpuSession, 1785000000);
|
||||||
renderContext = createRenderer();
|
renderContext = createRenderer();
|
||||||
videoContext = createVideoContext();
|
videoContext = createVideoContext();
|
||||||
videoContext->renderContext = renderContext;
|
videoContext->renderContext = renderContext;
|
||||||
|
@ -137,7 +139,8 @@ void unInit()
|
||||||
freeRenderer(renderContext);
|
freeRenderer(renderContext);
|
||||||
freeVideoContext(videoContext);
|
freeVideoContext(videoContext);
|
||||||
unInitGyro();
|
unInitGyro();
|
||||||
pcvSetClockRate(PcvModule_CpuBus, 1020000000); //Reset CPU clock to default
|
clkrstCloseSession(&cpuSession); //end OC
|
||||||
|
clkrstExit();
|
||||||
}
|
}
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue