jak3: high fps fix for mech carry drop (#4223)

Closes #4205
This commit is contained in:
Hat Kid
2026-04-14 07:26:44 +02:00
committed by GitHub
parent 0e6c93efd8
commit 7145890eee
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -1766,7 +1766,8 @@
(vector-! v1-190 a1-44 (vector-float*! v1-190 (-> self control dynam gravity-normal) f0-13))
(let* ((f1-8 (vector-length v1-190))
(f2-1 f1-8)
(f0-14 (+ 512.0 f0-13))
;; og:preserve-this high fps fix
(f0-14 (+ (* 512.0 DISPLAY_FPS_RATIO) f0-13))
)
(vector+!
a1-44
@@ -1636,7 +1636,8 @@
)
)
(format 0 "frame: ~f~%" (ja-frame-num 0))
(when (and (fill-and-probe-using-spheres *collide-cache* s5-6) (< 12.5 (ja-frame-num 0)))
;; og:preserve-this high fps fix
(when (and (fill-and-probe-using-spheres *collide-cache* s5-6) (< 12.5 (* DISPLAY_FPS_RATIO (ja-frame-num 0))))
(sound-play "mech-setdown")
(let ((v1-73 (the-as sound-rpc-set-param (get-sound-buffer-entry))))
(set! (-> v1-73 command) (sound-command set-param))