mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-09-22 23:18:01 +03:00
system.GetTime(): Use SDL_GetTicks() instead of clock_gettime()
Some games (e.g. Toushin Toshi 3) malfunction when system.GetTime() returns a negative number. On many systems clock_gettime(CLOCK_MONOTONIC) returns the time since OS startup, but this wraps to a negative number after about 24.8 days. As a mitigation, use SDL_GetTicks() instead, which returns the elapsed time since game startup.
This commit is contained in:
Reference in New Issue
Block a user