mirror of
https://github.com/godotengine/godot.git
synced 2025-10-19 16:03:29 +00:00
[HTML5] Refactor audio drivers. Implement AudioWorklet w/o threads.
Performances are not great in general, bad on Firefox, on Chrome, well, it's an improvement compared to the way they broke ScriptProcessorNode. I'm actually surprised this works, it involves so many allocations, but there's no way around it when SharedArrayBuffer is not available :(.
This commit is contained in:
parent
da8cd3d7a7
commit
2024200182
7 changed files with 345 additions and 157 deletions
|
@ -62,7 +62,7 @@ private:
|
|||
|
||||
MainLoop *main_loop;
|
||||
int video_driver_index;
|
||||
AudioDriverJavaScript *audio_driver_javascript;
|
||||
List<AudioDriverJavaScript *> audio_drivers;
|
||||
VisualServer *visual_server;
|
||||
|
||||
bool swap_ok_cancel;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue