FIX: i fucking wrote profiler just to find that sleep function takes SECONDS arg :sob::sob::sob::sob::sob::sob::sob::sob::sob:😭
This commit is contained in:
@@ -61,15 +61,17 @@ int main(int numArguments, char* pszArgs[]) {
|
||||
std::cout << "Level has been generated in " << getTimeS() - startTime << std::endl;
|
||||
((MAIN_CLASS*)g_app)->level->saveLevelData();
|
||||
std::cout << "Level has been saved!" << std::endl;
|
||||
|
||||
while(!app->wantToQuit()) {
|
||||
app->update();
|
||||
//pthread_yield();
|
||||
sleep(20);
|
||||
sleepMs(20);
|
||||
}
|
||||
((MAIN_CLASS*)g_app)->level->saveLevelData();
|
||||
delete app;
|
||||
appContext.platform->finish();
|
||||
delete appContext.platform;
|
||||
|
||||
std::cout << "Quit correctly" << std::endl;
|
||||
return g_exitCode;
|
||||
}
|
||||
Reference in New Issue
Block a user