Web: Add godot_pool_size/emscripten_pool_size config

This commit is contained in:
Marcos Casagrande
2025-03-21 20:01:48 +01:00
parent 209a446e36
commit a7d18f51a2
8 changed files with 50 additions and 2 deletions

View File

@@ -148,6 +148,14 @@ String OS_Web::get_unique_id() const {
ERR_FAIL_V_MSG("", "OS::get_unique_id() is not available on the Web platform.");
}
int OS_Web::get_default_thread_pool_size() const {
#ifdef THREADS_ENABLED
return godot_js_os_thread_pool_size_get();
#else // No threads.
return 1;
#endif
}
bool OS_Web::_check_internal_feature_support(const String &p_feature) {
if (p_feature == "web") {
return true;