From 97396e87f6e05498d6f96abad19b59d05e4d40b4 Mon Sep 17 00:00:00 2001 From: Rokas Puzonas Date: Tue, 15 Aug 2023 00:08:59 +0300 Subject: [PATCH] remove unnecessary code --- src/main.cpp | 9 +-------- src/shell.html | 20 -------------------- 2 files changed, 1 insertion(+), 28 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index dee44d3..8fc88ac 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -102,15 +102,8 @@ void UpdateDrawFrame() { float dt = GetFrameTime(); RPROF_START("Update"); -#ifdef PLATFORM_WEB - // If user goes to another tab and comes back, the time that the user was gone needs to be ignored. - // So boids wouldn't tunnel through walls and do other shenanigans. - if (dt <= 5*TIME_PER_FRAME) { - world_update(&g_app.world, dt); - } -#else + // TODO: Account for large 'dt' whenever a user switches to another tab and comes back in web world_update(&g_app.world, dt); -#endif visuals_update(&g_app.world, &g_app.visuals); RPROF_STOP(); diff --git a/src/shell.html b/src/shell.html index 20ae46e..c1a1335 100644 --- a/src/shell.html +++ b/src/shell.html @@ -38,26 +38,6 @@ background-color: black; } - -