Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure 2D phase items are sorted before batching (#5942)
# Objective Without this we can inappropriately merge batches together without properly accounting for non-batch items between them, and the merged batch will then be sorted incorrectly later. This change seems to reliably fix the issue I was seeing in #5919. ## Solution Ensure the `batch_phase_system` runs after the `sort_phase_system`, so that batching can only look at actually adjacent phase items.
- Loading branch information
bb7f521
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You should really join these systems like I did here. Seems like a waste to iterate the
RenderPhase
s twice.