Skip to content

Fix the issue where UI batching breaks under specific conditions.#17900

Merged
minggo merged 2 commits into
cocos:v3.8.6from
GengineJS:v3.8.6
Nov 22, 2024
Merged

Fix the issue where UI batching breaks under specific conditions.#17900
minggo merged 2 commits into
cocos:v3.8.6from
GengineJS:v3.8.6

Conversation

@GengineJS

@GengineJS GengineJS commented Nov 21, 2024

Copy link
Copy Markdown
Contributor
  1. When a node is recycled or the component is in a deactivated state, space should be freed up so that other active UI components can reuse it.
  2. When the component is reactivated, it should be rebuilt and re-included in the batching process.

@star-e star-e left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good.

@minggo

minggo commented Nov 21, 2024

Copy link
Copy Markdown
Contributor

Please add some description about this PR, include:

  • what's the specific conditions
  • how did you fix it

@GengineJS

Copy link
Copy Markdown
Contributor Author

Please add some description about this PR, include:

  • what's the specific conditions
  • how did you fix it

Added description

@github-actions

github-actions Bot commented Nov 21, 2024

Copy link
Copy Markdown

⚠️ Package size ⤴ 89 bytes, old: 5376156, new: 5376245

Interface Check Report

This pull request does not change any public interfaces !

Comment thread cocos/2d/framework/ui-renderer.ts Outdated
// When disabling, it is necessary to free up idle space to fully utilize chunks
// and avoid breaking batch processing.
if (this._renderData) {
this.destroyRenderData();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

destroyRenderData() already check _renderData, so don't have check it here again.

@GengineJS GengineJS requested a review from minggo November 21, 2024 09:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants