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

Frame rate goes to 1 with autoAdd #26

Open
psytron opened this issue Nov 7, 2023 · 3 comments
Open

Frame rate goes to 1 with autoAdd #26

psytron opened this issue Nov 7, 2023 · 3 comments

Comments

@psytron
Copy link

psytron commented Nov 7, 2023

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 #20 but wasn't sure if it belongs as separate issue now.

@markuslerner
Copy link
Owner

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.

@psytron
Copy link
Author

psytron commented Nov 8, 2023

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
        }
      );

@markuslerner
Copy link
Owner

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.

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