-
Notifications
You must be signed in to change notification settings - Fork 136
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
TryRead/Write for querying optional components #25
Conversation
@AThilenius would this meet your needs for the problems we ran into in |
Yep, I could replace the dozen separate queries with this. It could still pick up invalid combinations like Scale + NonUniformScale, but throwing a runtime error ther is totally acceptable. Can this be done efficiently though? I'm on my phone so don't want to dig through code. |
A query containing |
The solution currently in |
I expect performance would be similar (assuming you use par_for_each or equivalent), but the code would be vastly simplified. |
Added |
If this implementation strategy looks good, I'll follow up with a similar
MaybeWrite
.