Decrease time before reshowing HUD
This shouldn't make any difference on normal MT servers but if the server step is low enough it should prevent stuttering.
This commit is contained in:
parent
40101f3a68
commit
d4a3acba33
4
init.lua
4
init.lua
|
@ -417,7 +417,7 @@ function hud_fs.show_hud(player, formname, formspec)
|
|||
-- Block future HUD modifications if the new HUD isn't empty
|
||||
if new_elems[1] then
|
||||
data[3] = true
|
||||
minetest.after(0.05, reshow_hud, name, formname, data)
|
||||
minetest.after(0.01, reshow_hud, name, formname, data)
|
||||
end
|
||||
|
||||
if DEBUG then
|
||||
|
@ -469,7 +469,7 @@ function hud_fs.show_hud(player, formname, formspec)
|
|||
-- Only block future HUD modifications if any elements have been added
|
||||
if proto_ver < 40 and added > 0 then
|
||||
data[3] = true
|
||||
minetest.after(0.05, reshow_hud, name, formname, data)
|
||||
minetest.after(0.01, reshow_hud, name, formname, data)
|
||||
end
|
||||
|
||||
if DEBUG then
|
||||
|
|
Loading…
Reference in New Issue