FIX: i fucking wrote profiler just to find that sleep function takes SECONDS arg 😭😭😭😭😭😭😭😭😭😭

This commit is contained in:
Kolyah35
2026-03-15 20:35:02 +03:00
parent b0fa2b820c
commit fadcf3a7d0
9 changed files with 133 additions and 172 deletions

View File

@@ -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;
}