-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Remove need to check ready before calling getGeometryInstanceAttributes #2174
Comments
@bagnell any chance this was part of the batch table changes? |
The batch table fixes this mostly. The only thing that needs to wait for the primitive to be ready is the bounding sphere. If it's OK to return |
Yeah, I think it will be fine for the bounding sphere property to require the primitive being ready. Labeled this as |
@pjcozzi will the bounding sphere wait synchronously or asynchronously for the primitive to be ready? |
The bounding sphere |
This leads to workarounds like:
Full example: https://gist.github.com/pjcozzi/4bc8fbf5a2907de6c3a9
We can just buffer the attributes, which will also eliminate the need for a scratch variable each time an attribute is set (
u.offsetArray
above), which caught me recently. I suspect this can be done without creating GC pressure so the performance drop should be insignificant compared to the usability gain.CC #766
The text was updated successfully, but these errors were encountered: