ui(raylib): decrease target FPS to 30 (#35062)

This commit is contained in:
Cameron Clough
2025-04-24 21:00:48 +01:00
committed by GitHub
parent 8088438bd6
commit 7c223e5586
+2 -2
View File
@@ -7,7 +7,7 @@ from openpilot.common.basedir import BASEDIR
from openpilot.common.swaglog import cloudlog
from openpilot.system.hardware import HARDWARE
DEFAULT_FPS = 60
DEFAULT_FPS = 30
FPS_LOG_INTERVAL = 5 # Seconds between logging FPS drops
FPS_DROP_THRESHOLD = 0.9 # FPS drop threshold for triggering a warning
FPS_CRITICAL_THRESHOLD = 0.5 # Critical threshold for triggering strict actions
@@ -44,7 +44,7 @@ class GuiApplication:
def request_close(self):
self._window_close_requested = True
def init_window(self, title: str, fps: int=DEFAULT_FPS):
def init_window(self, title: str, fps: int = DEFAULT_FPS):
atexit.register(self.close) # Automatically call close() on exit
HARDWARE.set_display_power(True)