diff --git a/tools/session-fps.sh b/tools/session-fps.sh index 67240757..dcc99f4d 100755 --- a/tools/session-fps.sh +++ b/tools/session-fps.sh @@ -4,7 +4,8 @@ # The stats: frame lines are 5 s averages. Menus and loading are left out by # the draws threshold; use 0 to include every sample. set -euo pipefail -log=${1:-local/run/last.log} +root=$(cd "$(dirname "$(readlink -f "$0")")/.." && pwd) +log=${1:-$root/local/run/last.log} min=${2:-2000} if [ ! -f "$log" ]; then echo "no log: $log" >&2