We can go down a level and there's a loading screen for it. The map and motion now matches the directions shown in the raycasting. There's now a compass that shows you the direction you're facing.
This commit is contained in:
parent
e9accf14e6
commit
54fbf22b6d
17 changed files with 124 additions and 36 deletions
13
stats.hpp
13
stats.hpp
|
@ -1,7 +1,10 @@
|
|||
#pragma once
|
||||
#include <cmath>
|
||||
#include <chrono>
|
||||
|
||||
struct Stats {
|
||||
using TimeBullshit = std::chrono::time_point<std::chrono::high_resolution_clock>;
|
||||
|
||||
double sum = 0.0;
|
||||
double sumsq = 0.0;
|
||||
unsigned long n = 0L;
|
||||
|
@ -41,5 +44,15 @@ struct Stats {
|
|||
n += 1;
|
||||
}
|
||||
|
||||
inline TimeBullshit time_start() {
|
||||
return std::chrono::high_resolution_clock::now();
|
||||
}
|
||||
|
||||
inline void sample_time(TimeBullshit start) {
|
||||
auto end = std::chrono::high_resolution_clock::now();
|
||||
auto elapsed = std::chrono::duration<double>(end - start);
|
||||
sample(1/elapsed.count());
|
||||
}
|
||||
|
||||
void dump();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue