|
|
@ -11,10 +11,10 @@ from enum import StrEnum |
|
|
|
from typing import NamedTuple |
|
|
|
from typing import NamedTuple |
|
|
|
from importlib.resources import as_file, files |
|
|
|
from importlib.resources import as_file, files |
|
|
|
from openpilot.common.swaglog import cloudlog |
|
|
|
from openpilot.common.swaglog import cloudlog |
|
|
|
from openpilot.system.hardware import HARDWARE, PC |
|
|
|
from openpilot.system.hardware import HARDWARE, PC, TICI |
|
|
|
from openpilot.common.realtime import Ratekeeper |
|
|
|
from openpilot.common.realtime import Ratekeeper |
|
|
|
|
|
|
|
|
|
|
|
DEFAULT_FPS = int(os.getenv("FPS", "60")) |
|
|
|
DEFAULT_FPS = int(os.getenv("FPS", 20 if TICI else 60)) |
|
|
|
FPS_LOG_INTERVAL = 5 # Seconds between logging FPS drops |
|
|
|
FPS_LOG_INTERVAL = 5 # Seconds between logging FPS drops |
|
|
|
FPS_DROP_THRESHOLD = 0.9 # FPS drop threshold for triggering a warning |
|
|
|
FPS_DROP_THRESHOLD = 0.9 # FPS drop threshold for triggering a warning |
|
|
|
FPS_CRITICAL_THRESHOLD = 0.5 # Critical threshold for triggering strict actions |
|
|
|
FPS_CRITICAL_THRESHOLD = 0.5 # Critical threshold for triggering strict actions |
|
|
|