diff --git a/source_files/edge/i_sound.cc b/source_files/edge/i_sound.cc index 100553646..56b64b9f8 100644 --- a/source_files/edge/i_sound.cc +++ b/source_files/edge/i_sound.cc @@ -69,7 +69,7 @@ static bool TryOpenSound(int want_freq, bool want_stereo) trydev.freq = want_freq; trydev.format = AUDIO_F32SYS; trydev.channels = want_stereo ? 2 : 1; - trydev.samples = 512; + trydev.samples = 1024; trydev.callback = SoundFillCallback; current_sound_device = SDL_OpenAudioDevice(nullptr, 0, &trydev, &sound_device_check, 0); diff --git a/source_files/edge/i_web.cc b/source_files/edge/i_web.cc index 5a2cd7615..b1ac54bcc 100644 --- a/source_files/edge/i_web.cc +++ b/source_files/edge/i_web.cc @@ -149,10 +149,7 @@ extern "C" void EMSCRIPTEN_KEEPALIVE WebMain(int argc, const char **argv) { - // Note: We're using the max framerate which feels smoother in testing - // Though raises a console error in debug warning about not using - // requestAnimationFrame - emscripten_set_main_loop(WebTick, 70, 0); + emscripten_set_main_loop(WebTick, 0, 0); emscripten_set_pointerlockchange_callback(EMSCRIPTEN_EVENT_TARGET_DOCUMENT, nullptr, 0, WebHandlePointerLockChange);