All subapps use their own ComputeTaskPool by default #4791
Labels
A-App
Bevy apps and plugins
A-Rendering
Drawing game state to the screen
A-Tasks
Tools for parallel and async work
C-Bug
An unexpected or incorrect behavior
C-Performance
A change motivated by improving speed, memory usage or compile times
Bevy version
de2b1a4, also happens in v0.7.
Operating system & version
Any
What you did
Use
RenderPlugin
viaDefaultPlugins
What you expected to happen
A single global
ComputeTaskPool
is spawned, with a 1:1 correspondence with the number of logical CPU cores on the machine (32).What actually happened
Two separate
ComputeTaskPool
s were spawned, one for each subapp. A total of 65 threads were spawned (1 main + 32 for each sub app).Additional information
ParallelExecutor
inserts a defaultCompteTaskPool
if there isn't one stored as a resource. When spawning the render sub-app, the main world'sComputeTaskPool
is not cloned and inserted into the render app's.The text was updated successfully, but these errors were encountered: