| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
As per feedback in PR aframevr#5186
|
Thanks so much for the hard work. The time you put researching and profiling is super super appreciated. It can be really tedious, on headset in particular. I know this PR is not ideal. Just trying to contain the added code complexity. Enjoy the Holidays! |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Updated set of changes as per feedback in PR #5186.
However I am concerned about the performance characteristics of updating raycasters in this way.
A querySelectorAll() call on an attribute selector [raycaster] is potentially an expensive operation as it requires traversal of the entire HTML graph.
However the alternative of caching the set of raycaster entities in the scene is also problematic, as you'd have to figure out when to refresh that cache...
Hence I think it would be better to stick with emitting events, as per #5186, to keep the performance overhead of adding to / removing from pools to a minimum.
@dmarcos - for now, leaving the code as per your request in #5186, pending your feedback. Happy to update this PR to include emitting the events if you agree that would be better from a performance pov. Let me know...