foxygit / fake-08-xbox360 Log in
commit 7ffa9093acd5910ca1d6bdc310015bd200f89bff
Author:     Jon Bell <j.to.the.bell@gmail.com>
AuthorDate: Sat Mar 2 18:18:57 2024 -0700
Commit:     Jon Bell <j.to.the.bell@gmail.com>
CommitDate: Sat Mar 2 18:18:57 2024 -0700

    Hack to force game to correct speed
---
 source/vm.cpp | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/source/vm.cpp b/source/vm.cpp
index 50e57ec..1ba417a 100644
--- a/source/vm.cpp
+++ b/source/vm.cpp
@@ -677,7 +677,7 @@ void Vm::CloseCart() {
     }

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

@@ -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
@@ -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(){