| 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}; |