mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-24 18:17:21 +01:00
Low priority redraw request for AnimatedSprite
Prevents animated sprite from creating continuous redraws in vital_redraws_only mode.
This commit is contained in:
parent
e7f63e7022
commit
dae57cd077
@ -386,6 +386,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();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user