code: fix profiler collate not being called

isolation_bkp/dynres
Dominik Madarász 2022-09-13 11:27:54 +00:00 committed by GitHub
parent 5f908771df
commit c20793d896
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 4 deletions

View File

@ -100,10 +100,14 @@ int main(int argc, char** argv) {
return 0; return 0;
} }
#if defined(EMSCRIPTEN) #if defined(PLATFORM_WEB)
void UpdateDrawFrame(void) { void UpdateDrawFrame(void) {
profile (PROF_MAIN_LOOP) {
game_input(); game_input();
game_update(); game_update();
game_render(); game_render();
} }
profiler_collate();
}
#endif #endif