Skip to content

Render App systems are blocking the Main app's primary thread #9964

@james7132

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.

image

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.

Metadata

Assignees

No one assigned

    Labels

    A-ECSEntities, components, systems, and eventsA-TasksTools for parallel and async workC-BugAn unexpected or incorrect behaviorC-PerformanceA change motivated by improving speed, memory usage or compile timesD-TrivialNice and easy! A great choice to get started with Bevy

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions