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