-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Render App systems are blocking the Main app's primary thread #9964
Copy link
Copy link
Labels
A-ECSEntities, components, systems, and eventsEntities, components, systems, and eventsA-TasksTools for parallel and async workTools for parallel and async workC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorC-PerformanceA change motivated by improving speed, memory usage or compile timesA change motivated by improving speed, memory usage or compile timesD-TrivialNice and easy! A great choice to get started with BevyNice and easy! A great choice to get started with Bevy
Description
Bevy version
main (f8fd93f)
What you did
I ran cargo run --profile stress-test --features trace_tracy --example many_cubes and viewed the trace in Tracy.
What went wrong
I was expecting that no blocking systems from the render app would block the main app from progressing.
In this screenshot, prepare_windows is blocking UpdateAssets from terminating. Delaying it from terminating and blocking PreUpdate and subsequent schedules.
We currently do not schedule tasks from the ComputeTaskPool onto the render app thread, it may be a good idea to avoid doing so with all dedicated app schedule threads.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A-ECSEntities, components, systems, and eventsEntities, components, systems, and eventsA-TasksTools for parallel and async workTools for parallel and async workC-BugAn unexpected or incorrect behaviorAn unexpected or incorrect behaviorC-PerformanceA change motivated by improving speed, memory usage or compile timesA change motivated by improving speed, memory usage or compile timesD-TrivialNice and easy! A great choice to get started with BevyNice and easy! A great choice to get started with Bevy
