mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2025-01-11 17:29:09 +01:00
Fixed Windows build issues
This commit is contained in:
parent
1e80caa650
commit
81f1848044
@ -133,7 +133,7 @@ double PerfStats::GetStableFrameTimeScale() const {
|
||||
std::scoped_lock lock{object_mutex};
|
||||
|
||||
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,
|
||||
perf_history.begin() + current_index, 0.0);
|
||||
const double stable_frame_length = sum / num_frames;
|
||||
|
Loading…
x
Reference in New Issue
Block a user