You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
auto min = *std::min_element(fpsList.begin(), fpsList.end());
507
+
auto max = *std::max_element(fpsList.begin(), fpsList.end());
508
+
auto maxIndex = std::distance(fpsList.begin(), std::max_element(fpsList.begin(), fpsList.end()));
509
+
auto siz = fpsList.size();
510
+
auto avg = std::accumulate(fpsList.begin(), fpsList.end(), 0.0) / siz;
511
+
auto varianceFunc = [&avg, &siz](double accumulator, double val) {
512
+
return accumulator + (val - avg) * (val - avg);
513
+
};
514
+
auto std = sqrt(std::accumulate(fpsList.begin(), fpsList.end(), 0.0, varianceFunc) / siz);
515
+
auto frameAvg = std::accumulate(frameList.begin(), frameList.end(), 0.0) / frameList.size();
516
+
auto frameMax = frameList.begin();
517
+
std::advance(frameMax, maxIndex);
518
+
auto inputMax = inputList.begin();
519
+
std::advance(inputMax, maxIndex);
520
+
auto waitMax = waitList.begin();
521
+
std::advance(waitMax, maxIndex);
522
+
if (frames % (frameGuess * 2) == 0)
523
+
{
524
+
Debug::log("frame total average: %f, frame render average %f, std dev %f, lowest FPS %f, highest FPS %f, highest FPS render time %f, highest FPS input time %f, highest FPS wait time %f, lag frames %d\n",
0 commit comments