Files
Matt Dallmeyer b948e954d0 [jak2/3] Fix dark/light eco HUD not flashing after save file is X hours old (#4285)
Once `(-> *display* game-clock frame-counter)` gets too large, in the
HUD flashing math the `sin` function breaks down at high values. It's
effectively reading the number of ticks (times a multiplier) as degrees,
so we can modulo that by 360 to avoid breaking `sin`

This applies to both the eco meter and the dark jak icon in jak 2 - the
icon stops flashing twice as early because it's multiplied by x4 vs the
eco meter x2.

example:

you can see dark jak icon stops flashing around 2:36:02
https://youtu.be/3V2GneLSY14?t=9362

and dark eco meter stops flashing between 4:30 and 4:37
https://youtu.be/3V2GneLSY14?t=16235
https://youtu.be/3V2GneLSY14?t=16619
2026-06-06 17:32:12 +01:00
..
2026-04-12 19:45:05 -04:00
2024-02-13 16:38:58 +00:00
2024-04-22 18:43:51 +02:00