bevyengine / bevyengine/bevy

Consider adding a cleanup phase to schedule builds

Open
#20,730 0 comments 0 reactions 0 assignees View on GitHub
A-ECS C-Feature C-Performance
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## What problem does this solve or what need does it fill?
Schedule builds are expected to be relatively rare, but as of right now, most of the metadata used during the initial schedule builds remains allocated long after they're required ,even with the systems moved out.

## What solution would you like?
A separate part of the schedule lifecycle to clean up / deallocate the schedule build metadata.

## What alternative(s) have you considered?
Explicitly define the schedule lifecycle as an enum, which ensures that metadata from each phase in a schedule's lifecycle is properly cleaned up on moving to the next phase. This might be too brittle though if want to add/remove systems from the schedule at runtime.

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.