virtualx-engine/core
Fabio Alessandrelli 4ed1d977fc [OS] Add ThreadWorkPool default size to OS.
Some platforms (*cough* web *cough*) have hard limits on the number of
threads that can be spawned.

Currently, ThreadPoolWork (mostly used in rendering/physics servers)
will spawn as many threads as CPUs available causing exception on
machines with high CPU count.

This commit adds a new overridable method to OS that returns the default
thread pool size (still the CPU count by default), and overrides it for
the JavaScript platform so it always allocate only one thread.

We can likely improve the whole ThreadPoolWork in the future to always
allocate X amount of threads, and assign jobs to them on the fly, but
that will require some more architectural changes.
2021-11-02 04:16:00 +01:00
..
config Restrict the project data directory configuration 2021-10-18 14:10:38 -07:00
crypto [Crypto] Delete mbedtls ctx in deconstructor. 2021-07-03 16:12:55 +02:00
debugger Save all 64 bits of get_ticks_msec() in more cases 2021-10-26 13:58:58 +02:00
error Implement toast notifications in the editor 2021-10-14 13:30:54 +02:00
extension Implement toast notifications in the editor 2021-10-14 13:30:54 +02:00
input clang-format: Various fixes to comments alignment from clang-format 13 2021-10-28 15:43:36 +02:00
io clang-format: Various fixes to comments alignment from clang-format 13 2021-10-28 15:43:36 +02:00
math clang-format: Enable BreakBeforeTernaryOperators 2021-10-28 15:57:41 +02:00
multiplayer [Net] Fix spawn/despawn custom callable argument. 2021-10-12 14:18:16 +02:00
object CI: Update to clang-format 13 using LLVM repo 2021-10-28 17:11:00 +02:00
os [OS] Add ThreadWorkPool default size to OS. 2021-11-02 04:16:00 +01:00
string Merge pull request #54350 from akien-mga/clang-format-dont-align-operands 2021-10-28 17:10:52 +02:00
templates [OS] Add ThreadWorkPool default size to OS. 2021-11-02 04:16:00 +01:00
variant Modify Dictionary::operator== to do real key/value comparison with recursive support (and add unittests) 2021-10-30 13:11:01 +02:00
core_bind.cpp [macOS] Add create_instance function to spawn editor copies. 2021-11-01 11:48:23 +02:00
core_bind.h [macOS] Add create_instance function to spawn editor copies. 2021-11-01 11:48:23 +02:00
core_builders.py Use maximum zlib compression when generating editor translation headers 2021-10-29 19:07:48 +02:00
core_constants.cpp [Net] Rename RPC constants and annotation arguments. 2021-10-01 18:14:38 +02:00
core_constants.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00
core_string_names.cpp Removed _change_notify 2021-02-10 19:31:24 -03:00
core_string_names.h Removed _change_notify 2021-02-10 19:31:24 -03:00
doc_data.cpp Implement NativeExtension pointer arguments 2021-08-23 19:58:40 -03:00
doc_data.h Move the docs for constructors and operators out of methods section 2021-10-29 12:34:57 -05:00
register_core_types.cpp [Net] Bind Multiplayer to GDExtension. 2021-09-24 18:40:39 +02:00
register_core_types.h Implement native extension system 2021-06-25 17:32:45 -03:00
SCsub SCons: List .gen.cpp sources explicitly to avoid globbing errors 2021-10-15 22:14:11 +02:00
typedefs.h Modify Dictionary::operator== to do real key/value comparison with recursive support (and add unittests) 2021-10-30 13:11:01 +02:00
version.h Update copyright statements to 2021 2021-01-01 20:19:21 +01:00