Skip to content

Conversation

@UkoeHB
Copy link
Contributor

@UkoeHB UkoeHB commented Oct 1, 2024

Objective

Solution

  • Refactor TextPipeline::update_buffer to accept an iterator instead of slice. Adjust update_buffer implementation to only iterate spans once instead of three times (which would require iterating a hierarchy three times with multi-entity blocks).

Testing

  • Tested with text_debug example.

@alice-i-cecile alice-i-cecile added C-Usability A targeted quality-of-life change that makes Bevy easier to use A-Text Rendering and layout for characters S-Waiting-on-Author The author needs to make changes or address concerns before this can be merged C-Code-Quality A section of code that is hard to understand or change and removed C-Usability A targeted quality-of-life change that makes Bevy easier to use labels Oct 1, 2024
@UkoeHB UkoeHB marked this pull request as ready for review October 1, 2024 22:13
@UkoeHB UkoeHB removed the S-Waiting-on-Author The author needs to make changes or address concerns before this can be merged label Oct 1, 2024
Copy link
Contributor

@kristoff3r kristoff3r left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not super familiar with this code but the changes make sense to me. I tested the text example and it still works.

@alice-i-cecile alice-i-cecile added the S-Needs-Review Needs reviewer attention (from anyone!) to move forward label Oct 1, 2024
@alice-i-cecile alice-i-cecile added S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it and removed S-Needs-Review Needs reviewer attention (from anyone!) to move forward labels Oct 1, 2024
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Oct 1, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to a conflict with the base branch Oct 1, 2024
@alice-i-cecile
Copy link
Member

alice-i-cecile commented Oct 1, 2024

@UkoeHB some jerk created a merge conflict for your PR! (it was #15583)

@alice-i-cecile alice-i-cecile added this pull request to the merge queue Oct 1, 2024
Merged via the queue into bevyengine:main with commit 3df281b Oct 2, 2024
@UkoeHB UkoeHB deleted the text_updates branch October 2, 2024 00:22
robtfm pushed a commit to robtfm/bevy that referenced this pull request Oct 4, 2024
…ne#15581)

# Objective

- Prepare `TextPipeline` to work with multi-entity text blocks. See
bevyengine#15014

## Solution

- Refactor `TextPipeline::update_buffer` to accept an iterator instead
of slice. Adjust `update_buffer` implementation to only iterate spans
once instead of three times (which would require iterating a hierarchy
three times with multi-entity blocks).

## Testing

- Tested with `text_debug` example.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Text Rendering and layout for characters C-Code-Quality A section of code that is hard to understand or change S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants