将TouchGFX Engine主循环与显示屏传输同步
通过阅读touchgfx的文档:https://support.touchgfx.com/zh-CN/docs/basic-concepts/rendering
了解到TouchGFX中图形引擎大致如下图中的循环
- 收集输入(触摸坐标、按钮)
- 更新场景模型
- 将场景模型渲染到帧缓存
在伪代码中,TouchGFX图形引擎内部的主循环大致是这样的:
while(true) {
collect(); // Collect events from outside
update(); // Update the application ui model
rende