Skip to content

Commit

Permalink
Cap FPS
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonjchen committed Sep 30, 2023
1 parent 3c1fa25 commit 3f5ec70
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion clip.sh
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ fi

# TODO: ALLOWED_SERVICES is killing too much for some reason. Need to figure out what is the actual minimal set of services to run. Or just don't care.
tmux new-window -n replay -t clipper: "TERM=xterm-256color eatmydata faketime -m -f \"+0 x$SPEEDHACK_AMOUNT\" $REPLAY_CMD"
tmux new-window -n ui -t clipper: "eatmydata faketime -m -f \"+0 x$SPEEDHACK_AMOUNT\" ./selfdrive/ui/ui"
tmux new-window -n ui -t clipper: "eatmydata faketime -m -f \"+0 x$SPEEDHACK_AMOUNT\" strangle 20 ./selfdrive/ui/ui"

# If it's not a local replay with data dir, then we need to wait for the route to download
if [ -z "$DATA_DIR" ]; then
Expand Down
9 changes: 9 additions & 0 deletions common/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,12 @@ mv /home/batman/openpilot_min /home/batman/openpilot

# Blow away pyenv used to build openpilot
rm -rf /root/.pyenv_openpilot

# Compile libstrangle for FPS cap tool, install it, and then remove the source
cd / || exit
rm -rf /home/robin/libstrangle || true
git clone --depth 1 https://gitlab.com/torkel104/libstrangle /home/robin/libstrangle
cd /home/robin/libstrangle
make install-common install-native install-ld
cd / || exit
rm -rf /home/robin/libstrangle

0 comments on commit 3f5ec70

Please sign in to comment.