Skip to content
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

CSS VR Performance issues #11

Open
dmarcos opened this issue Aug 28, 2014 · 2 comments
Open

CSS VR Performance issues #11

dmarcos opened this issue Aug 28, 2014 · 2 comments

Comments

@dmarcos
Copy link

dmarcos commented Aug 28, 2014

I created this planetarium demo to test performance:

http://swimminglessonsformodernlife.com/cssVR/perfTest/

  1. You should see a star counter in the middle of your field of view (press ‘z’ if you don’t to zero head orientation)
  2. The number of stars starts at 100. Head tracking works well.
  3. Press ’s’ to add 100 stars. Observe how performance degrades. On my machine, the demo is already unusable with 300 stars. Passed 1000 the browser hangs and I have to kill it because I cannot even close the tab.

I’m on OSX 10.9.4 - Macbook PRO Retina 13” - 8GB RAM - 3GHz Intel Core i7 - Intel HD Graphics 4000

@dmarcos
Copy link
Author

dmarcos commented Aug 28, 2014

Each star is just one 2px X 2px DOM element with white background.

.star {
width: 2px;
height: 2px;
background-color: white;
border-radius: 50%
}

@brianpeiris
Copy link

@dmarcos I believe the correct URL is now http://swimminglessonsformodernlife.com/cssVR/examples/perfTest/ but the "s" key no longer generates new stars.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants