mirror of
https://github.com/open-goal/jak-project
synced 2026-07-04 05:20:56 -04:00
jak2: some high fps fixes (#3177)
This commit is contained in:
@@ -311,7 +311,8 @@
|
||||
)
|
||||
)
|
||||
(when (< v1-1 32)
|
||||
(let* ((a3-1 (the-as int (-> pp clock integral-frame-counter)))
|
||||
;; og:preserve-this high fps fix
|
||||
(let* ((a3-1 (the int (* DISPLAY_FPS_RATIO (-> pp clock integral-frame-counter))))
|
||||
(a2-3 (-> a1-1 time-factor))
|
||||
(t0-2 (+ (ash 1 a2-3) -1))
|
||||
)
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
;(defconstant DMA_BUFFER_DEBUG_SIZE (* 8 1024 1024)) ;; 8M
|
||||
(defconstant DMA_BUFFER_DEBUG_SIZE (* 12 1024 1024)) ;; expand to 12M because we can
|
||||
|
||||
(defconstant DISPLAY_FPS_RATIO (/ (-> *display* time-factor) 5.0))
|
||||
|
||||
;; DECOMP BEGINS
|
||||
|
||||
(defun get-current-time ()
|
||||
|
||||
@@ -121,7 +121,8 @@
|
||||
)
|
||||
)
|
||||
(when (not (paused?))
|
||||
(let ((v1-10 8))
|
||||
;; og:preserve-this high fps fix
|
||||
(let ((v1-10 (* DISPLAY_FPS_RATIO 8)))
|
||||
(if (and (< (-> this values 1 target) 270) (< 270 (+ (-> this values 1 target) v1-10)))
|
||||
(set! (-> this values 1 target) 270)
|
||||
)
|
||||
|
||||
@@ -2429,7 +2429,8 @@
|
||||
(if (or (logtest? (-> arg1 class flags) (minimap-flag frustum))
|
||||
(logtest? (-> arg1 class flags) (minimap-flag racer))
|
||||
(and (logtest? (-> arg1 class flags) (minimap-flag flash))
|
||||
(< (the-as int (logand (-> *display* base-clock integral-frame-counter) 15)) 8)
|
||||
;; og:preserve-this high fps fix
|
||||
(< (the-as int (logand (the int (* DISPLAY_FPS_RATIO (-> *display* base-clock integral-frame-counter))) 15)) 8)
|
||||
)
|
||||
)
|
||||
(set! s2-0 #t)
|
||||
|
||||
@@ -796,7 +796,8 @@
|
||||
(ja :group! ginsu-idle-ja :num! min)
|
||||
)
|
||||
(vector-seek! (-> self root scale) (new 'static 'vector :x 1.0 :y 1.0 :z 1.0) 0.02)
|
||||
(+! (-> self path-pos) (/ 2048.0 (total-distance (-> self ambush-path))))
|
||||
;; og:preserve-this high fps fix
|
||||
(+! (-> self path-pos) (/ (* DISPLAY_FPS_RATIO 2048.0) (total-distance (-> self ambush-path))))
|
||||
(let ((f30-1 (-> self path-pos)))
|
||||
(when (>= f30-1 1.0)
|
||||
(set! (-> self path-pos) 1.0)
|
||||
|
||||
Reference in New Issue
Block a user