Low priority redraw request for AnimatedSprite

Prevents animated sprite from creating continuous redraws in vital_redraws_only mode.
This commit is contained in:
lawnjelly 2022-09-11 19:09:07 +01:00
parent 13d99d1676
commit 54a939a029

View file

@ -367,6 +367,9 @@ void AnimatedSprite::_notification(int p_what) {
if (frame < 0) {
return;
}
if (!OS::get_singleton()->is_update_pending()) {
return;
}
float remaining = get_process_delta_time();