Skip to content

fix(pipeline): create render graph vertices invalid so culling runs in release builds - #19196

Closed
hakastein wants to merge 1 commit into
cocos:v3.8.9from
hakastein:fix/custom-pipeline-release-culling
Closed

fix(pipeline): create render graph vertices invalid so culling runs in release builds#19196
hakastein wants to merge 1 commit into
cocos:v3.8.9from
hakastein:fix/custom-pipeline-release-culling

Conversation

@hakastein

Copy link
Copy Markdown

Re: #19194

Changelog

  • Custom pipeline: pass false rather than !DEBUG as the valid argument of RenderGraph.addVertex in WebPipeline. With CC_DEBUG false every render graph vertex was created valid, so Compiler._fetchValidPass returned at its if (validPass) guard for all of them and nothing was culled — the whole graph was compiled and submitted every frame.

Continuous Integration

This pull request:

  • needs automatic test cases check.

    Manual trigger with @cocos-robot run test cases afterward.

  • does not change any runtime related code or build configuration

Compatibility Check

This pull request:

  • changes public API
  • affects platform compatibility
  • affects file structure of the build package
  • introduces breaking changes

…n release builds

WebPipeline passed `!DEBUG` as the `valid` argument of RenderGraph.addVertex.
With CC_DEBUG false every vertex was created valid, so Compiler._fetchValidPass
returned at its `if (validPass)` guard for all of them and nothing was culled —
the whole render graph was compiled and submitted every frame.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Your trial has ended. Reactivate Greptile to resume code reviews.

@github-actions

Copy link
Copy Markdown

Code Size Check Report

Wechat (WASM) Before After Diff
2D Empty (legacy pipeline) 1009838 bytes 1009838 bytes ✅ 0 bytes
2D All (legacy pipeline) 2675490 bytes 2675490 bytes ✅ 0 bytes
2D All (new pipeline) 2767226 bytes 2767226 bytes ✅ 0 bytes
(2D + 3D) All 10024224 bytes 10024224 bytes ✅ 0 bytes
Web (WASM + ASMJS) Before After Diff
(2D + 3D) All 16843286 bytes 16843286 bytes ✅ 0 bytes

Interface Check Report

This pull request does not change any public interfaces !

@hakastein hakastein closed this Jul 29, 2026
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.

1 participant