Skip to content

Commit

Permalink
Merge pull request #1216 from myk002/myk_timestream
Browse files Browse the repository at this point in the history
[timestream] use new unpaused FPS tracker
  • Loading branch information
myk002 authored Jun 30, 2024
2 parents 57967d1 + 98e1d10 commit f0295f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion timestream.lua
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ local function adjust_activities(timeskip)
end

local function on_tick()
local real_fps = math.max(1, df.global.enabler.calculated_fps)
local real_fps = math.max(1, dfhack.internal.getUnpausedFps())
if real_fps >= state.settings.fps then
timeskip_deficit, calendar_timeskip_deficit = 0.0, 0.0
return
Expand Down

0 comments on commit f0295f3

Please sign in to comment.