mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-01 17:38:41 +00:00
Change how max_lag is calculated and reported (#14378)
-Change how max_lag is calculated and reported - Cap singleplayer step at 60Hz - Clarify dedicated_server_step
This commit is contained in:
parent
63a9853811
commit
5d8a22066c
6 changed files with 40 additions and 25 deletions
|
@ -350,12 +350,10 @@ class IntervalLimiter
|
|||
public:
|
||||
IntervalLimiter() = default;
|
||||
|
||||
/*
|
||||
dtime: time from last call to this method
|
||||
wanted_interval: interval wanted
|
||||
return value:
|
||||
true: action should be skipped
|
||||
false: action should be done
|
||||
/**
|
||||
@param dtime time from last call to this method
|
||||
@param wanted_interval interval wanted
|
||||
@return true if action should be done
|
||||
*/
|
||||
bool step(float dtime, float wanted_interval)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue