MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / PiuView_onIdle

Function PiuView_onIdle

modules/piu/MC/piuView.c:1550–1573  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1548}
1549
1550void PiuView_onIdle(xsMachine* the)
1551{
1552 PiuView* self = PIU(View, xsThis);
1553 PiuApplication* application = (*self)->application;
1554 xsVars(2);
1555 if (!application) return;
1556// #ifdef piuGPU
1557// if (!(*self)->ready)
1558// return;
1559// #endif
1560 (*self)->updating = 1;
1561 (*self)->idleTicks = PiuViewTicks(self);
1562 PiuApplicationDeferContents(the, application);
1563 PiuApplicationIdleContents(application);
1564 PiuApplicationTouchIdle(application);
1565 PiuApplicationAdjust(application);
1566 (*self)->updating = 0;
1567 PiuViewUpdate(self, application);
1568 PiuApplicationIdleCheck(application);
1569 (*self)->idleTicks = 0;
1570#if defined(piuGPU) && defined(mxInstrument)
1571 modInstrumentationMax(PiuCommandListUsed, piuTextureSize);
1572#endif
1573}
1574
1575void PiuView_onMessage(xsMachine* the)
1576{

Callers 1

PiuView_onDisplayReadyFunction · 0.70

Calls 6

PiuApplicationTouchIdleFunction · 0.85
PiuApplicationAdjustFunction · 0.85
PiuApplicationIdleCheckFunction · 0.85
PiuViewTicksFunction · 0.70

Tested by

no test coverage detected