You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't really get how/when to use SyncComponentPlugin tbh.
From what I understand, you just need to add the plugin on the app and it should just work. I think I'd place it in the RaytracingScenePlugin since the RaytracingMesh3d component is manually extracted in extract_raytracing_scene.
I’m only familiar with this cause lights are set up with their own SyncComponentPlugin’s so I was able to remove manual removal code that had to deal with lights like this. Lights are manually extracted so they don’t use the ExtractComponentPlugin, but they have SyncComponentPlugins to manage any cleanup that needs to happen.impl SyncComponent is only necessary if there are additional components that should be removed when the main world counterpart is removed. @kristoff3r can probably explain more / verify if what I said is correct (author of #22766 )
I don't really get how/when to use SyncComponentPlugin tbh.
From what I understand, you just need to add the plugin on the app and it should just work. I think I'd place it in the RaytracingScenePlugin since the RaytracingMesh3d component is manually extracted in extract_raytracing_scene.
I’m only familiar with this cause lights are set up with their own SyncComponentPlugin’s so I was able to remove manual removal code that had to deal with lights like this. Lights are manually extracted so they don’t use the ExtractComponentPlugin, but they have SyncComponentPlugins to manage any cleanup that needs to happen.impl SyncComponent is only necessary if there are additional components that should be removed when the main world counterpart is removed. @kristoff3r can probably explain more / verify if what I said is correct (author of #22766 )
Edit: In this case I think it's fine, this is easier than using the SyncComponent machinery. My hope is that some day we'll have ergonomic ways to handle all the extraction cases that come with syncing included, and at that point we can remove all the ad-hoc stuff and be free from retained render world errors forever.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
A-RenderingDrawing game state to the screenC-BugAn unexpected or incorrect behaviorD-StraightforwardSimple bug fixes and API improvements, docs, test and examplesS-Ready-For-Final-ReviewThis PR has been approved by the community. It's ready for a maintainer to consider merging it
5 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #24042.