Merge branch 'main' into visuals-restoration

This commit is contained in:
MihailRis 2025-12-16 01:12:00 +03:00
commit c017273374
20 changed files with 105 additions and 54 deletions

View file

@ -9,6 +9,7 @@ block.__perform_ticks = function(delta)
for id, entry in pairs(updating_blocks) do
entry.timer = entry.timer + delta
local steps = math.floor(entry.timer / entry.delta * #entry / 3)
steps = math.min(steps, #entry / 3)
if steps == 0 then
goto continue
end
@ -28,6 +29,7 @@ block.__perform_ticks = function(delta)
for id, queue in pairs(present_queues) do
queue.timer = queue.timer + delta
local steps = math.floor(queue.timer / queue.delta * #queue / 3)
steps = math.min(steps, #queue / 3)
if steps == 0 then
goto continue
end

View file

@ -523,8 +523,10 @@ function __process_post_runnables()
fn_audio_reset_fetch_buffer()
debug.pull_events()
network.__process_events()
block.__process_register_events()
block.__perform_ticks(time.delta())
if not hud or not hud.is_paused() then
block.__process_register_events()
block.__perform_ticks(time.delta())
end
end
function time.post_runnable(runnable)