MCPcopy Create free account
hub / github.com/MyGUI/mygui / notifyFrameStartUpdateStatistic

Method notifyFrameStartUpdateStatistic

Common/Base/BaseDemoManager.h:76–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74
75 private:
76 void notifyFrameStartUpdateStatistic(float _time)
77 {
78 if (mInfo != nullptr)
79 {
80 static float time = 0;
81 time += _time;
82 if (time > 1)
83 {
84 time -= 1;
85
86 MyGUI::MapString statistic = getStatistic();
87 for (MyGUI::MapString::const_iterator info = statistic.begin(); info != statistic.end(); info++)
88 mInfo->change((*info).first, (*info).second);
89 mInfo->update();
90 }
91 }
92 }
93
94 private:
95 diagnostic::StatisticInfo* mInfo{nullptr};

Callers

nothing calls this directly

Calls 4

changeMethod · 0.80
beginMethod · 0.45
endMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected