Skip to content

Commit

Permalink
autounsuspend: increase interval between checks
Browse files Browse the repository at this point in the history
Checking every 5 ticks can worsen issues like DFHack/dfhack#1076. 100 should
be reasonable (once a second with 100 FPS).

Resolves DFHack/dfhack#1076
  • Loading branch information
lethosor committed May 5, 2017
1 parent 95dbacd commit 1d768b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autounsuspend.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def process

def start
@running = true
@onupdate = df.onupdate_register('autounsuspend', 5) { process if @running }
@onupdate = df.onupdate_register('autounsuspend', 100) { process if @running }
end

def stop
Expand Down

0 comments on commit 1d768b6

Please sign in to comment.