revert gif decoder call

This commit is contained in:
Stephan Mühl
2023-04-07 23:29:27 +02:00
parent 70b68e14c4
commit 47493062b4
9 changed files with 452 additions and 607 deletions

View File

@@ -170,13 +170,14 @@ int8_t MatrixDisplayUi::update()
int8_t timeBudget = this->updateInterval - (appStart - this->state.lastUpdate);
if (timeBudget <= 0)
{
// Implement app skipping to ensure time budget is keept
// Implement frame skipping to ensure time budget is keept
if (this->setAutoTransition && this->state.lastUpdate != 0)
this->state.ticksSinceLastStateSwitch += ceil(-timeBudget / this->updateInterval);
this->state.lastUpdate = appStart;
this->tick();
}
return this->updateInterval - (millis() - appStart);
}
@@ -220,7 +221,7 @@ void MatrixDisplayUi::tick()
if (this->AppCount > 0)
this->drawApp();
this->drawOverlays();
//this->matrix->show();
this->matrix->show();
}
void MatrixDisplayUi::drawApp()

View File

@@ -61,7 +61,7 @@ struct MatrixDisplayUiState
// Normal = 1, Inverse = -1;
int8_t appTransitionDirection = 1;
bool lastFrameShown = false;
bool manuelControll = false;
// Custom data that can be used by the user
@@ -85,7 +85,7 @@ private:
uint16_t ticksPerTransition = 15; // ~ 500ms at 30 FPS
bool setAutoTransition = true;
bool lastFrameShown;
AppCallback *AppFunctions;
// Internally used to transition to a specific app
@@ -114,6 +114,7 @@ public:
* Initialise the display
*/
void init();
void show();
/**
* Configure the internal used target FPS