godot
godot copied to clipboard
Move Web export threads options out of variant
This PR moves the newly added (by #104458) variant/emscripten_pool_size and variant/godot_pool_size to threads/emscripten_pool_size and threads/godot_pool_size. It also adds the functionality to make the threads option only appear if threads are enabled. (a future PR will hide more data, i.e. PWA options only if it's enabled)
https://github.com/user-attachments/assets/9f0adb90-f6dc-4a71-90be-8d71c417a858
The issue stems of having 2 options prominently featured only for thread builds. This is bad, as most of Godot exports are expected to be single-threaded.
Cc. @marcosc90
Does it make sense to mark any of those as "Advanced Options"?
Does it make sense to mark any of those as "Advanced Options"?
Yeah, they could be both. Hidden when off and marked as advanced.
IMO if they're hidden by default (threads is off by default), then making them advanced might be too much and make them unintuitive to find. So I would either make them hidden contextually, or make them advanced options.