You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-26 15:46:23 +00:00
Low priority redraw request for AnimatedSprite
Prevents animated sprite from creating continuous redraws in vital_redraws_only mode.
(cherry picked from commit 54a939a029)
This commit is contained in:
committed by
Rémi Verschelde
parent
0a216bfec0
commit
9f646c867d
@@ -367,6 +367,9 @@ void AnimatedSprite::_notification(int p_what) {
|
|||||||
if (frame < 0) {
|
if (frame < 0) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (!OS::get_singleton()->is_update_pending()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
float remaining = get_process_delta_time();
|
float remaining = get_process_delta_time();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user