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

Sim freezes momentarily while camera activates #14

Open
KatieWoe opened this issue Sep 2, 2022 · 3 comments
Open

Sim freezes momentarily while camera activates #14

KatieWoe opened this issue Sep 2, 2022 · 3 comments

Comments

@KatieWoe
Copy link

KatieWoe commented Sep 2, 2022

Test device
Dell
Operating System
Win 11
Browser
Chrome
Problem description
For phetsims/qa#831
When starting the sim with the camera inputs, the sim seems frozen for up to a few seconds and clicking or mousing over things don't seem to work. The sim then starts and runs smoothly. I suspect the camera is activating at this time, but it isn't necessarily obvious.

Troubleshooting information:

!!!!! DO NOT EDIT !!!!!
Name: ‪Ratio and Proportion‬
URL: https://phet-dev.colorado.edu/html/ratio-and-proportion/1.2.0-dev.31/phet/ratio-and-proportion_all_phet.html?cameraInput=hands
Version: 1.2.0-dev.31 2022-08-24 16:50:40 UTC
Features missing: applicationcache, applicationcache, touch
Flags: pixelRatioScaling
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36
Language: en-US
Window: 1280x649
Pixel Ratio: 1.5/1
WebGL: WebGL 1.0 (OpenGL ES 2.0 Chromium)
GLSL: WebGL GLSL ES 1.0 (OpenGL ES GLSL ES 1.0 Chromium)
Vendor: WebKit (WebKit WebGL)
Vertex: attribs: 16 varying: 30 uniform: 4096
Texture: size: 16384 imageUnits: 16 (vertex: 16, combined: 32)
Max viewport: 32767x32767
OES_texture_float: true
Dependencies JSON: {}

@KatieWoe KatieWoe added the type:bug Something isn't working label Sep 2, 2022
@zepumph
Copy link
Member

zepumph commented Sep 8, 2022

Yea. I'm not sure if there is any way around this. The sim freezes because it loads the media pipe library content. I can experiment with using asyncLoader locks, but we will need/want to have an offline dialog after the load time if internet is off. So I'll need to take a closer look.

@zepumph
Copy link
Member

zepumph commented Oct 5, 2022

@emily-phet, for this release, is it acceptable that there is a ~2 second freeze after the sim has started up because of media pipe initialization? I am happy to investigate further if you think it blocks this publication.

@zepumph zepumph assigned emily-phet and unassigned zepumph Oct 5, 2022
@emily-phet
Copy link

We'll describe this as a feature still in development any place we're sharing the query parameter to access it, so a short freeze is acceptable. This should not block publication.

@emily-phet emily-phet assigned zepumph and unassigned emily-phet Oct 5, 2022
@zepumph zepumph removed their assignment Oct 5, 2022
@zepumph zepumph removed the type:bug Something isn't working label Oct 5, 2022
@zepumph zepumph transferred this issue from phetsims/ratio-and-proportion Oct 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants