movind stuf around
This commit is contained in:
parent
c0ac94529d
commit
d04b700809
75 changed files with 22 additions and 28494 deletions
|
|
@ -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();
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue