phetsims / paper-land

Build and explore multimodal web interactives with pieces of paper!
https://phetsims.github.io/paper-land/
MIT License
10 stars 1 forks source link

Support debug programs without a camera feed #197

Closed jessegreenberg closed 2 months ago

jessegreenberg commented 6 months ago

The debug programs would often be most useful without a camera feed so that there is no distracting noise. Lets add an option to play with debug programs with no camera feed.

brettfiedler commented 3 months ago

We'll be taking care of this issue in #221!

brettfiedler commented 3 months ago

Deferred work on #221 means we should work on a simple implementation of this.

jessegreenberg commented 3 months ago

This was added in the above commit and seems to be working well.

However, with the camera disabled we can skip expensive work in detectPrograms for better performance. I tried it out tonight but the way variables are reused for both camera and debug programs is making it tricky to refactor. Ill have to return to that part next time.

jessegreenberg commented 2 months ago

OK! This seems to be working well with better performance by skipping the blob and program detector when the camera is disabled. Merged into main. A checkbox was added to Camera Settings

image

Closing.