You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
[HTML5] Implement get_processor_count.
This commit is contained in:
@@ -282,6 +282,11 @@ const GodotOS = {
|
||||
godot_js_os_shell_open: function (p_uri) {
|
||||
window.open(GodotRuntime.parseString(p_uri), '_blank');
|
||||
},
|
||||
|
||||
godot_js_os_hw_concurrency_get__sig: 'i',
|
||||
godot_js_os_hw_concurrency_get: function () {
|
||||
return navigator.hardwareConcurrency || 1;
|
||||
},
|
||||
};
|
||||
|
||||
autoAddDeps(GodotOS, '$GodotOS');
|
||||
|
||||
Reference in New Issue
Block a user