Skip to content

Correct usage of ComputeTaskPool is unclear #16504

@clubby789

Description

@clubby789

How can Bevy's documentation be improved?

I used ComputeTaskPool to queue several computationally heavy tasks that I wanted to run in the background, but complete by the next frame:
https://github.com/Crusaders-of-Rust/cormine/blob/b0d0a65207695e3c8b6266de71da4d80f706bb12/src/main.rs#L246-L320

However, checking frame counts, it seems to take up to 18 frames for the sync tasks to be ready. It's not clear from these docs how exactly this pool should be used to queue tasks for completion by the next frame.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-TasksTools for parallel and async workC-DocsAn addition or correction to our documentationD-StraightforwardSimple bug fixes and API improvements, docs, test and examplesS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions