ui: prep for 60fps (#36585)

pull/36587/head
Adeeb Shihadeh 1 day ago committed by GitHub
parent 89919c8832
commit 2d31b422c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      .gitmodules
  2. 9
      launch_env.sh
  3. 4
      selfdrive/ui/ui.py
  4. 3
      system/hardware/tici/hardware.py
  5. 2
      tinygrad_repo

2
.gitmodules vendored

@ -15,4 +15,4 @@
url = ../../commaai/teleoprtc
[submodule "tinygrad"]
path = tinygrad_repo
url = https://github.com/tinygrad/tinygrad.git
url = https://github.com/commaai/tinygrad.git

@ -6,6 +6,15 @@ export NUMEXPR_NUM_THREADS=1
export OPENBLAS_NUM_THREADS=1
export VECLIB_MAXIMUM_THREADS=1
# models get lower priority than ui
# - ui is ~5ms
# - modeld is 20ms
# - DM is 10ms
# in order to run ui at 60fps (16.67ms), we need to allow
# it to preempt the model workloads. we have enough
# headroom for this until ui is moved to the CPU.
export QCOM_PRIORITY=12
if [ -z "$AGNOS_VERSION" ]; then
export AGNOS_VERSION="14.5"
fi

@ -9,8 +9,8 @@ from openpilot.selfdrive.ui.ui_state import ui_state
def main():
cores = {7, }
config_realtime_process(0, 1)
cores = {5, }
config_realtime_process(0, 51)
gui_app.init_window("UI")
main_layout = MainLayout()

@ -424,7 +424,8 @@ class Tici(HardwareBase):
# *** GPU config ***
# https://github.com/commaai/agnos-kernel-sdm845/blob/master/arch/arm64/boot/dts/qcom/sdm845-gpu.dtsi#L216
affine_irq(7, "msm_drm") # display
affine_irq(5, "fts_ts") # touch
affine_irq(5, "msm_drm") # display
sudo_write("1", "/sys/class/kgsl/kgsl-3d0/min_pwrlevel")
sudo_write("1", "/sys/class/kgsl/kgsl-3d0/max_pwrlevel")
sudo_write("1", "/sys/class/kgsl/kgsl-3d0/force_bus_on")

@ -1 +1 @@
Subproject commit a6fd96f62050efd4a2fe7c885d1a11f87e3c5b0a
Subproject commit 7296c74cbd2666da7dce95d7ca6dab5340653a5c
Loading…
Cancel
Save