try to fix funky timing hanging animation loops

This commit is contained in:
2023-10-04 22:49:33 +02:00
parent e12d7b1458
commit c98dd8a584
2 changed files with 6 additions and 6 deletions

View File

@@ -16,7 +16,7 @@ struct TextureEntry {
bool rendered_this_frame {false};
// or flipped for animations
uint64_t timestamp_last_rendered {0}; // ms
int64_t timestamp_last_rendered {0}; // ms
TextureEntry(void) = default;
TextureEntry(const TextureEntry& other) :
@@ -50,7 +50,7 @@ struct TextureEntry {
current_texture = (current_texture + 1) % frame_duration.size();
}
void doAnimation(const uint64_t ts_now);
void doAnimation(const int64_t ts_now);
template<typename TextureType>
TextureType getID(void) {