-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[OpenXR] Hit testing returns empty results mixed with actual data #56710
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
Conversation
|
EWS run on previous version of this PR (hash 31a5281) Details |
djg
left a comment
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.
![]()
fujii
left a comment
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.
Don't you change constexpr int maxHitTestResults = 2 to increase the number? If you don't change, I don't understand what this change means.
|
Ah, I understand the problem. This code always copies two items. It should check If you want to use Vector for xrResults, we shouldn't use |
That would be fine but you'd still be allocating a vector of size maxHitTestResults which is larger than the one required, I know it is not a big deal because the number of results is small.
OK will change that. |
31a5281 to
f11b888
Compare
|
EWS run on previous version of this PR (hash f11b888) Details |
f11b888 to
4f74b4c
Compare
|
EWS run on current version of this PR (hash 4f74b4c) Details |
https://bugs.webkit.org/show_bug.cgi?id=305641 Reviewed by Fujii Hironori and Dan Glastonbury. The OpenXRHitTestManager can call xrRaycastANDROID with specific parameters to first determine how many results are available and then use that number to size the Vector where the actual results will be stored. This way we don't need to ask always for the max allowed number of results (most of them would be empty/zero) but instead for the exact number of available hit test results. No new tests as this is specific to OpenXR. * Source/WebKit/UIProcess/XR/openxr/OpenXRHitTestManager.cpp: (WebKit::OpenXRHitTestManager::requestHitTest): Canonical link: https://commits.webkit.org/305809@main
4f74b4c to
df0854f
Compare
|
Committed 305809@main (df0854f): https://commits.webkit.org/305809@main Reviewed commits have been landed. Closing PR #56710 and removing active labels. |
df0854f
4f74b4c
🛠 win🛠 ios-sim🧪 wpe-wk2🧪 win-tests🧪 ios-wk2🧪 api-mac🧪 ios-wk2-wpt🧪 api-mac-debug🧪 api-ios🛠 vision🧪 mac-wk2🧪 gtk-wk2🧪 mac-wk2-stress🛠 playstation🧪 mac-intel-wk2🛠 watch