movind stuf around

This commit is contained in:
kin fuyuki 2026-02-17 01:35:06 -03:00
commit d04b700809
No known key found for this signature in database
GPG key ID: 0E4E8E519FB71401
75 changed files with 22 additions and 28494 deletions

View file

@ -1,17 +0,0 @@
#include "program.h"
long long calibrate() {
unsigned long long start = __rdtsc();
struct timespec ts;
ts.tv_sec = 0;
ts.tv_nsec = 100000000L; // 0.1 seconds
nanosleep(&ts, NULL);
return (__rdtsc() - start) * 10;
}
const long long enginend::CPUCLOCK=calibrate();
void enginend::program::changescene(scene *scn) {
this->currentscene->exit();
delete this->currentscene;
this->currentscene = scn;
this->currentscene->boot();
}