Disabled partial cache refresh for now due to many issues related to it, and also static images dont constantly require updating

This commit is contained in:
Yousef Khadadeh 2025-08-07 22:27:54 +03:00
parent 0b72dd4ea9
commit 453f01b4c7
4 changed files with 54 additions and 47 deletions

View file

@ -20,10 +20,10 @@ bool ImageResourceDisplay::update_draw() const {
}
void ImageResourceDisplay::update(World& w) {
mustUpdateDraw = false;
if(frames.size() <= 1)
return;
currentTime += w.main.deltaTime * 1000.0;
mustUpdateDraw = false;
for(;;) {
if(currentTime >= frames[frameIndex].duration) {
currentTime -= frames[frameIndex].duration;