mirror of
https://github.com/godotengine/godot.git
synced 2025-10-20 08:23:29 +00:00
[HTML5] Implement get_processor_count.
This commit is contained in:
parent
1446cfd13d
commit
26ec6ca576
4 changed files with 11 additions and 0 deletions
|
@ -129,6 +129,10 @@ int OS_JavaScript::get_process_id() const {
|
|||
ERR_FAIL_V_MSG(0, "OS::get_process_id() is not available on the HTML5 platform.");
|
||||
}
|
||||
|
||||
int OS_JavaScript::get_processor_count() const {
|
||||
return godot_js_os_hw_concurrency_get();
|
||||
}
|
||||
|
||||
bool OS_JavaScript::_check_internal_feature_support(const String &p_feature) {
|
||||
if (p_feature == "HTML5" || p_feature == "web") {
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue