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:
parent
0b72dd4ea9
commit
453f01b4c7
4 changed files with 54 additions and 47 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue