| 177 | } |
| 178 | |
| 179 | std::vector<int> StatisticsData::getTypesThatNeedLoading(int frameIndex) const |
| 180 | { |
| 181 | std::vector<int> typesToLoad; |
| 182 | auto loadAll = this->frameIdx != frameIndex; |
| 183 | for (const auto &statsType : this->statsTypes) |
| 184 | { |
| 185 | if (statsType.render && (loadAll || this->frameCache.count(statsType.typeID) == 0)) |
| 186 | typesToLoad.push_back(statsType.typeID); |
| 187 | } |
| 188 | |
| 189 | DEBUG_STATDATA("StatisticsData::getTypesThatNeedLoading " |
| 190 | << QString::fromStdString(to_string(typesToLoad))); |
| 191 | return typesToLoad; |
| 192 | } |
| 193 | |
| 194 | // return raw(!) value of front-most, active statistic item at given position |
| 195 | // Info is always read from the current buffer. So these values are only valid if a draw event |