Bring in the gnu omni font for text, and rewrite my stats code to use c++ and then use that to calc FPS stats for an FPS display on the left. Debug build gets about 48, release gets about 500fps. Amit's code will probably do even better.

This commit is contained in:
Zed A. Shaw 2025-01-18 02:42:41 -05:00
parent e3e0f0a322
commit cf9682ed70
8 changed files with 85 additions and 95 deletions

10
stats.cpp Normal file
View file

@ -0,0 +1,10 @@
#include "stats.hpp"
#include <fmt/core.h>
void Stats::dump()
{
fmt::println("sum: {}, sumsq: {}, n: {}, "
"min: {}, max: {}, mean: {}, stddev: {}",
sum, sumsq, n, min, max, mean(),
stddev());
}