mirror of
https://github.com/Lime3DS/Lime3DS
synced 2025-01-09 13:43:27 +00:00
Fixed Windows build issues
This commit is contained in:
parent
1e80caa650
commit
81f1848044
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ double PerfStats::GetStableFrameTimeScale() const {
|
||||||
std::scoped_lock lock{object_mutex};
|
std::scoped_lock lock{object_mutex};
|
||||||
|
|
||||||
constexpr double FRAME_LENGTH_MILLIS = (1.0 / SCREEN_REFRESH_RATE) * 1000;
|
constexpr double FRAME_LENGTH_MILLIS = (1.0 / SCREEN_REFRESH_RATE) * 1000;
|
||||||
const short num_frames = std::min(50ul, current_index + 1);
|
const size_t num_frames = std::min<size_t>(50UL, current_index + 1);
|
||||||
const double sum = std::accumulate(perf_history.begin() + current_index - num_frames,
|
const double sum = std::accumulate(perf_history.begin() + current_index - num_frames,
|
||||||
perf_history.begin() + current_index, 0.0);
|
perf_history.begin() + current_index, 0.0);
|
||||||
const double stable_frame_length = sum / num_frames;
|
const double stable_frame_length = sum / num_frames;
|
||||||
|
|
Loading…
Reference in a new issue