THREE.Interactive icon indicating copy to clipboard operation
THREE.Interactive copied to clipboard

Frame rate goes to 1 with autoAdd

Open psytron opened this issue 2 years ago • 3 comments

The new autoAdd feature is excellent for intuitive user experience, but performance drops to 1 frame per second.

Any thoughts on how to configure it to prevent that? I added it as commend in https://github.com/markuslerner/THREE.Interactive/issues/20 but wasn't sure if it belongs as separate issue now.

psytron avatar Nov 07 '23 20:11 psytron

Hi @psytron, thank you for checking it out! Can you please post your code here or upload it somewhere? Then I can look into it.

markuslerner avatar Nov 08 '23 08:11 markuslerner

I copy pasted the example code from https://dev.markuslerner.com/three.interactive/examples/auto-add.html

      const interactionManager = new InteractionManager(
        renderer,
        camera,
        renderer.domElement,
        {
          autoAdd: true,
          scene
        }
      );

psytron avatar Nov 08 '23 19:11 psytron

Hi @psytron, on my Mac the above example runs at 60 fps in Chrome, Safari and Firefox. Does it run fast for you as well? Which browser are you using?

I would need your full code to able to debug it.

markuslerner avatar Nov 09 '23 13:11 markuslerner