mirror of
https://github.com/minetest/minetest.git
synced 2024-09-12 00:26:50 +02:00
Fix AsyncRunStep() skipping steps when dtime < 1 ms
This commit is contained in:
parent
467d3a8c62
commit
ad5e9aa5e3
@ -604,7 +604,8 @@ void Server::AsyncRunStep(float dtime, bool initial_step)
|
|||||||
SendBlocks(dtime);
|
SendBlocks(dtime);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((dtime < 0.001f) && !initial_step)
|
// If paused, this function is called with a 0.0f literal
|
||||||
|
if ((dtime == 0.0f) && !initial_step)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ScopeProfiler sp(g_profiler, "Server::AsyncRunStep()", SPT_AVG);
|
ScopeProfiler sp(g_profiler, "Server::AsyncRunStep()", SPT_AVG);
|
||||||
|
Loading…
Reference in New Issue
Block a user