Advertisement
Guest User

Untitled

a guest
Jan 24th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. void iApplication::run()
  2. {
  3. _running = true;
  4.  
  5. _frameSectionID = iStatistics::getInstance().registerSection("app:frame", 0);
  6. _handleSectionID = iStatistics::getInstance().registerSection("app:handle", 0);
  7.  
  8. do
  9. {
  10. iStatistics::getInstance().nextFrame();
  11.  
  12. iStatistics::getInstance().beginSection(_frameSectionID);
  13. iTimer::getInstance().handle();
  14.  
  15. _windows.flush();
  16.  
  17. iNodeFactory::getInstance().handle();
  18. iPhysics::getInstance().handle();
  19.  
  20. iStatistics::getInstance().beginSection(_handleSectionID);
  21. handle();
  22. iStatistics::getInstance().endSection(_handleSectionID);
  23.  
  24. draw();
  25.  
  26. iStatistics::getInstance().endSection(_frameSectionID);
  27. } while (_running);
  28.  
  29. iStatistics::getInstance().unregisterSection(_frameSectionID);
  30. iStatistics::getInstance().unregisterSection(_handleSectionID);
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement