Skip to content

Multi-thread in wasm is extremly poor performance and broken status-% w ResourceLoader #112958

@Nicklas-Holmgren

Description

@Nicklas-Holmgren

Tested versions

System information

Windows 11 - Godot v4.6.dev4 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3090

Issue description

When ticking Thread checkbox in web export:

1st of all. progress bar is not working. ResourceLoader.load_threaded_get_status(path: String, progress: Array = []) function never returns any progress amount.

2nd. Game runs insanely poorly compared to when running same project without ticking the checkbox.

(Tested browser FireFox)

It is basically just better to export the game in non-threaded.

Steps to reproduce

Create some 3d game project.

  1. Make some thread.
  2. Load resource via thread
  3. Report status and set a ProgressBar value
  4. Status will remain 0 as value never changes.

Game will have insanely poor performance unless you remove the THREAD tick-box.

Minimal reproduction project (MRP)

I will upload a small project later today... But until then, maybe the C# has the same issue? #34506

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    For team assessment

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions