mirror of
https://github.com/godotengine/godot.git
synced 2026-01-03 18:11:19 +03:00
Web: Add godot_pool_size/emscripten_pool_size config
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user