aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Rudin <thomas@rudin.io>2019-10-12 22:36:56 +0200
committerThomas Rudin <thomas@rudin.io>2019-10-12 22:36:56 +0200
commit7b6d776051582176e357ca364f82143ca4818dac (patch)
tree577ec55b9f76a901ce4b8da12338ce5fb6614988
parenta792602f6c768855605b4e6496c3921f742bf6da (diff)
downloadmesecons_debug-7b6d776051582176e357ca364f82143ca4818dac.tar.gz
mesecons_debug-7b6d776051582176e357ca364f82143ca4818dac.zip
lower limit
Diffstat (limited to '')
-rw-r--r--init.lua2
-rw-r--r--overrides.lua2
2 files changed, 2 insertions, 2 deletions
diff --git a/init.lua b/init.lua
index 708230a..a091174 100644
--- a/init.lua
+++ b/init.lua
@@ -6,7 +6,7 @@ mesecons_debug = {
-- playername => true
hud = {},
- max_usage_micros = 20000
+ max_usage_micros = 10000
}
dofile(MP.."/privs.lua")
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