bevyengine / bevyengine/bevy

Systems could potentially get preempted by tasks from other worlds

Open
#12,960 1 comment 0 reactions 0 assignees View on GitHub
A-Tasks C-Bug C-Performance
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## Bevy version
main

## What you did
while profiling ,I noticed that certain systems like `propagate_transforms `or `animate_targets `that utilize `par_iter `seemed to take an unusually long time to execute sometimes.

![image](https://github.com/bevyengine/bevy/assets/45868716/009ec074-a0f2-46fe-9a33-19007642b2b2)

## Additional information
If the systems in the main world using `par_iter ` ,its own thread may potentially get occupied by other tasks.Specifically,if the thief happens to be a heavy task in the rendering world , systems in the main world will be blocked,the pipeline rendering is likely to degrade into a serial approach.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.