diff options
author | Thomas Rudin <thomas@rudin.io> | 2019-10-12 22:36:56 +0200 |
---|---|---|
committer | Thomas Rudin <thomas@rudin.io> | 2019-10-12 22:36:56 +0200 |
commit | 7b6d776051582176e357ca364f82143ca4818dac (patch) | |
tree | 577ec55b9f76a901ce4b8da12338ce5fb6614988 /overrides.lua | |
parent | a792602f6c768855605b4e6496c3921f742bf6da (diff) | |
download | mesecons_debug-7b6d776051582176e357ca364f82143ca4818dac.tar.gz mesecons_debug-7b6d776051582176e357ca364f82143ca4818dac.zip |
lower limit
Diffstat (limited to 'overrides.lua')
-rw-r--r-- | overrides.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/overrides.lua b/overrides.lua index 5670e12..3a9108b 100644 --- a/overrides.lua +++ b/overrides.lua @@ -55,7 +55,7 @@ minetest.register_globalstep(function(dtime) ctx.avg_micros = math.floor((ctx.avg_micros * 0.9) + (ctx.micros * 0.1)) ctx.micros = 0 if ctx.avg_micros > mesecons_debug.max_usage_micros then - ctx.penalty = math.min(ctx.penalty + 0.1, 10) + ctx.penalty = math.min(ctx.penalty + 0.1, 20) elseif ctx.penalty > 0 then ctx.penalty = math.max(ctx.penalty - 0.01, 0) end |