Giter VIP home page Giter VIP logo

Comments (7)

kimberlysiva avatar kimberlysiva commented on June 4, 2024

@speigg and I were discussing whether this is the right approach. If many pages open a Street View, for instance, performance will degrade. We can stick with the current many-to-one approach and close the reality when there are no more consumers for it. See slack discussion here: https://argonjs.slack.com/archives/G3HN5EP9V/p1493922719880800

from argon-app.

kimberlysiva avatar kimberlysiva commented on June 4, 2024

Another point against multiple instances of the same reality: We've said that when a page gains focus its reality should not automatically be switched in. I can see this causing some confusion though, If two instances of a reality (that look quite similar) are in play.

from argon-app.

blairmacintyre avatar blairmacintyre commented on June 4, 2024

I think they should be separate (e.g., for multiple panos) and the Titles in the "select reality" screens should indicate both which reality and which app.

from argon-app.

speigg avatar speigg commented on June 4, 2024

The idea is that a single reality can transparently behave like a one-to-one connection for each session, if it manages the state of connecting sessions individually. The manager just has to tell the reality which session is in control. This is basically the same logic that any other service in the manager has to implement (like the VuforiaServiceProvider). For the reality chooser UI, each connection to the reality can still be displayed as a separate link (saying which app created it), and the user effectively chooses which app is in control when they choose from the list.

from argon-app.

blairmacintyre avatar blairmacintyre commented on June 4, 2024

If you can manage this, that's obviously a fine approach! I personally have two things I'd like to see:

  • realities go away when all the apps that opened them closes. (E.g. We never have the case we do now where I am bouncing through apps in the same page and realities are accruing)
  • the state of a reality and its relationship to an app is not lost

It sounds like your idea would solve both

from argon-app.

kimberlysiva avatar kimberlysiva commented on June 4, 2024

So is this a long-term or short-term goal? If you want I can go ahead and ensure that a reality closes when its consumers close. I think Gheric is better suited to implement the strategy outlined above (I understand it and think it's a great idea, but it'll take me much longer to figure out the implementation!)

from argon-app.

blairmacintyre avatar blairmacintyre commented on June 4, 2024

I think that is a good plan. For most people, that will be the biggest impact. Leave this open as a reminder to do the changes for managing multiple instances, but we should probably do that as part of rethinking realities anyway (so we can potentially have some of them render in webvr too)

from argon-app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.