-
Notifications
You must be signed in to change notification settings - Fork 19
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
IDL Proposal: Single event for all anchor update events. #12
Comments
Do anchors always update, every frame? If so, we don't need an event at all. Can anchors update at different rates? If so, we need an event per anchor, don't we? If every anchor does not update every frame, than we need some way of knowing when they change. I would prefer events over polling and looking at the value of the matrix. Could there be one event, with an array of anchors that changed? |
Anchors do not always have to update. It could even happen that they never
have to update. So this is not deterministic. Depends on the underlying
system. I think an event is justified -as polling is not a nice API for
this. It could definitively happen that some anchors update at different
rates, thus not all anchor have to update at the same time.
The issue is mainly to discuss if there should be one event in session that
indicates all the anchors that have been updated at that frame update or an
event per anchor. I think both options support well any scenario and each
have advantages and disadvantages.
…On Wed, Aug 22, 2018 at 1:54 PM Blair MacIntyre ***@***.***> wrote:
Do anchors always update, every frame? If so, we don't need an event at
all.
Can anchors update at different rates? If so, we need an event per anchor,
don't we?
If every anchor does not update every frame, than we need some way of
knowing when they change. I would prefer events over polling and looking at
the value of the matrix.
Could there be one event, with an array of anchors that changed?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#12 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AFcSKkfW3TksQzfLBIQ5_k7DwC3Jm3CWks5uTcULgaJpZM4WIJda>
.
|
Ok, that all makes sense. I have no strong opinions, I agree that there are advantages and disadvantages. I don't know enough about the implications of the tradeoffs in terms of web browser architectures (e.g., many events that cause the "exact number of correct updates", or one event where we do more work overall because it's likely we'll just read every anchor and possibly update every internal data structure that is based on anchors), plus it likely depends on the number of anchors and the platform specifics as well, as you point out. |
A related question is whether we offer a bulk polling API to get the latest relations of a set of From a different angle, a bulk query API could also reduce the need for the event in the first place - if an app has 10 active |
I decided not to use events to notify about anchor updates. It's not entirely clear to me what it means that an anchor got updated - for example, the anchor can remain unchanged (since its properties are not really changing), but that does not mean that the poses returned from |
The current IDL proposal includes a single event to indicate anchor update per anchor. Would it be better to have a global event in XRSession to handle all the anchor updates per frame at the same time?
The text was updated successfully, but these errors were encountered: