You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-11 13:10:58 +00:00
Save all 64 bits of get_ticks_msec() in more cases
(cherry picked from commit 5dc02eb8b0)
This commit is contained in:
committed by
Rémi Verschelde
parent
fa3fc6ff0d
commit
e29126914d
@@ -436,9 +436,9 @@ void EditorNode::_notification(int p_what) {
|
||||
last_checked_version = editor_data.get_undo_redo().get_version();
|
||||
}
|
||||
|
||||
// update the animation frame of the update spinner
|
||||
// Update the animation frame of the update spinner.
|
||||
uint64_t frame = Engine::get_singleton()->get_frames_drawn();
|
||||
uint32_t tick = OS::get_singleton()->get_ticks_msec();
|
||||
uint64_t tick = OS::get_singleton()->get_ticks_msec();
|
||||
|
||||
if (frame != update_spinner_step_frame && (tick - update_spinner_step_msec) > (1000 / 8)) {
|
||||
update_spinner_step++;
|
||||
@@ -449,7 +449,7 @@ void EditorNode::_notification(int p_what) {
|
||||
update_spinner_step_msec = tick;
|
||||
update_spinner_step_frame = frame + 1;
|
||||
|
||||
// update the icon itself only when the spinner is visible
|
||||
// Update the icon itself only when the spinner is visible.
|
||||
if (EditorSettings::get_singleton()->get("interface/editor/show_update_spinner")) {
|
||||
update_spinner->set_icon(gui_base->get_icon("Progress" + itos(update_spinner_step + 1), "EditorIcons"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user