-
-
Notifications
You must be signed in to change notification settings - Fork 311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix spriteDisableBatching
tag failure
#2261
Fix spriteDisableBatching
tag failure
#2261
Conversation
WalkthroughThe recent changes focus on refining the sprite batching functionality within the rendering engine. The removal of the Changes
Poem
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (invoked as PR comments)
Additionally, you can add CodeRabbit Configuration File (
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev/1.3 #2261 +/- ##
===========================================
+ Coverage 68.27% 69.18% +0.91%
===========================================
Files 468 523 +55
Lines 24353 27381 +3028
Branches 3632 4094 +462
===========================================
+ Hits 16626 18944 +2318
- Misses 6400 6948 +548
- Partials 1327 1489 +162 ☔ View full report in Codecov by Sentry. |
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.
Actionable comments posted: 0
Outside diff range, codebase verification and nitpick comments (1)
packages/core/src/RenderPipeline/BatchUtils.ts (1)
12-13
: Test coverage needed forcanBatchSprite
methodThe modification to the
canBatchSprite
method enhances control over sprite batching. However, it appears that this method is not currently covered by tests.
- File:
packages/core/src/RenderPipeline/BatchUtils.ts
- Method:
canBatchSprite
Please ensure that this method is covered by appropriate tests to validate its functionality.
Analysis chain
LGTM! But ensure test coverage.
The modification in the
canBatchSprite
method is correct and enhances control over sprite batching.However, ensure that this change is covered by tests.
# If tests are missing, consider adding the following test case: def test_can_batch_sprite_disable_batch_tag(): elementA = SubRenderElement() elementB = SubRenderElement() elementB.shaderPasses[0].setTagValue(BatchUtils._disableBatchTag, True) assert not BatchUtils.canBatchSprite(elementA, elementB)
Scripts executed
The following scripts were executed for the analysis:
Script:
#!/bin/bash # Description: Verify if the modified `canBatchSprite` method is covered by tests. # Test: Search for tests related to `canBatchSprite`. Expect: Test files containing `canBatchSprite`. rg --type python -A 5 'canBatchSprite'Length of output: 69
Script:
#!/bin/bash # Description: Verify if the modified `canBatchSprite` method is covered by tests. # Test: Search for tests related to `canBatchSprite`. Expect: Test files containing `canBatchSprite`. rg 'canBatchSprite'Length of output: 607
Tools
GitHub Check: codecov/patch
[warning] 13-13: packages/core/src/RenderPipeline/BatchUtils.ts#L13
Added line #L13 was not covered by tests
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (2)
- packages/core/src/Engine.ts (1 hunks)
- packages/core/src/RenderPipeline/BatchUtils.ts (1 hunks)
Additional context used
GitHub Check: codecov/patch
packages/core/src/RenderPipeline/BatchUtils.ts
[warning] 13-13: packages/core/src/RenderPipeline/BatchUtils.ts#L13
Added line #L13 was not covered by tests
Additional comments not posted (1)
packages/core/src/RenderPipeline/BatchUtils.ts (1)
9-9
: LGTM!The addition of the
_disableBatchTag
property is correct and improves the flexibility of sprite batching.
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
What is the current behavior? (You can also link to an open issue here)
What is the new behavior (if this is a feature change)?
Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
Other information:
Summary by CodeRabbit
New Features
Bug Fixes