Skip to content

Commit

Permalink
Hack to force game to correct speed
Browse files Browse the repository at this point in the history
  • Loading branch information
jtothebell committed Mar 3, 2024
1 parent d65e737 commit 7ffa909
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions source/vm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ void Vm::CloseCart() {
}

Logger_Write("resetting state\n");
_targetFps = 30;
_targetFps = 60;
_picoFrameCount = 0;
}

Expand Down Expand Up @@ -734,7 +734,7 @@ void Vm::GameLoop() {
//_host->setTargetFps(_targetFps);

//is this better at the end of the loop?
//_host->waitForTargetFps();
_host->waitForTargetFps();

if (_host->shouldQuit()) break; // break in order to return to hbmenu
//this should probably be handled just in the host class
Expand Down Expand Up @@ -1118,7 +1118,8 @@ void Vm::vm_reset(){
}

void Vm::setTargetFps(int targetFps){
_targetFps = targetFps;
//currently handled by lua loop?
//_targetFps = targetFps;
}

int Vm::getFps(){
Expand Down

0 comments on commit 7ffa909

Please sign in to comment.