Working on implementing server side physics on gam
This commit is contained in:
1 parent
1348efb5fe
commit
e0453db063
8 files changed
+42
-69
No files matched your search
+1
-1
@@ -64,7 +64,7 @@ class Session : public std::enable_shared_from_this<Session> {
|
||||
|
||||
|
||||
if (dt_server > 0) state_.simulate_physics(dt_server);
|
||||
using time_point = std::chrono::steady_clock::time_point;
|
||||
|
||||
std::chrono::steady_clock::time_point uptime_timepoint{ std::chrono::duration_cast<std::chrono::steady_clock::time_point::duration>(std::chrono::milliseconds(clientTimestamp)) };
|
||||
state_.lastUpdateServerTime = uptime_timepoint;
|
||||
|
||||
|
||||
Reference in new issue
Block a user