mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +00:00
Save all 64 bits of get_ticks_msec() in more cases
(cherry picked from commit 5dc02eb8b0)
This commit is contained in:
parent
fa3fc6ff0d
commit
e29126914d
10 changed files with 16 additions and 16 deletions
|
|
@ -887,8 +887,8 @@ int MultiplayerAPI::get_outgoing_bandwidth_usage() {
|
|||
int MultiplayerAPI::_get_bandwidth_usage(const Vector<BandwidthFrame> &p_buffer, int p_pointer) {
|
||||
int total_bandwidth = 0;
|
||||
|
||||
uint32_t timestamp = OS::get_singleton()->get_ticks_msec();
|
||||
uint32_t final_timestamp = timestamp - 1000;
|
||||
uint64_t timestamp = OS::get_singleton()->get_ticks_msec();
|
||||
uint64_t final_timestamp = timestamp - 1000;
|
||||
|
||||
int i = (p_pointer + p_buffer.size() - 1) % p_buffer.size();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue