mirror of
https://github.com/opentx/opentx.git
synced 2025-07-19 14:25:11 +03:00
Projectkk2glider/performance tests (#4658)
* Transparency and fonts gtests added (Horus) * Added to CLI: Graphics performance test, memory speed test (Horus) * Gtests fixes
This commit is contained in:
parent
fc376b3603
commit
dc89d2d630
5 changed files with 366 additions and 4 deletions
|
@ -206,6 +206,10 @@ void scheduleNextMixerCalculation(uint8_t module, uint16_t delay)
|
|||
|
||||
#define MENU_TASK_PERIOD_TICKS 25 // 50ms
|
||||
|
||||
#if defined(COLORLCD) && defined(CLI)
|
||||
bool perMainEnabled = true;
|
||||
#endif
|
||||
|
||||
void menusTask(void * pdata)
|
||||
{
|
||||
opentxInit();
|
||||
|
@ -225,8 +229,13 @@ void menusTask(void * pdata)
|
|||
#endif
|
||||
uint32_t start = (uint32_t)CoGetOSTime();
|
||||
DEBUG_TIMER_START(debugTimerPerMain);
|
||||
DEBUG_TIMER_SAMPLE(debugTimerPerMainPeriod);
|
||||
#if defined(COLORLCD) && defined(CLI)
|
||||
if (perMainEnabled) {
|
||||
perMain();
|
||||
}
|
||||
#else
|
||||
perMain();
|
||||
#endif
|
||||
DEBUG_TIMER_STOP(debugTimerPerMain);
|
||||
// TODO remove completely massstorage from sky9x firmware
|
||||
uint32_t runtime = ((uint32_t)CoGetOSTime() - start);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue