sync and delivery (and unused read) states and other smaller refactors

This commit is contained in:
2024-01-12 16:45:52 +01:00
parent 7c576dd4d0
commit 20b4cdc5f1
9 changed files with 147 additions and 25 deletions

View File

@ -21,7 +21,7 @@ void TextureEntry::doAnimation(const int64_t ts_now) {
TextureEntry generateTestAnim(TextureUploaderI& tu) {
TextureEntry new_entry;
new_entry.timestamp_last_rendered = getNowMS();
new_entry.timestamp_last_rendered = Message::getTimeMS();
new_entry.current_texture = 0;
for (size_t i = 0; i < 4; i++) {
// hack
@ -54,7 +54,3 @@ TextureEntry generateTestAnim(TextureUploaderI& tu) {
return new_entry;
}
uint64_t getNowMS(void) {
return std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::steady_clock::now().time_since_epoch()).count();
}