Skip to content

Core_Application

pojol edited this page Feb 19, 2018 · 4 revisions

App

App是对进程的一个封装,提供了进程的配置选项还有管理Module的功能。

int main()
{
      gsf::Application app;
      gsf::AppConfig cfg;

      app.init_cfg(cfg);

      app.create_module( xxx );
      //...

      app.run();

      return 0;
}

Interface


Frame

在App中帧是一个重要的概念, 它代表了主循环中的一次轮询。每个Module::State都会被分配到不同的帧上处理。在Cfg中可以配置帧的刷新频率

gsf中的一帧

Clone this wiki locally