Skip to content

controls.autoRotateSpeed is tied to framerate #24956

Closed
@1337faye

Description

Using controls.autoRotateSpeed in object controls creates automatic rotation but is tied to the client framerate, for example on chrome on a PC connected to a 120hz monitor, the auto rotate speed is double the speed of the same scene being rendered on a computer connected to a 60hz monitor.

A clear and concise description of what the bug is. Before submitting, please remove unnecessary sections.

To Reproduce

Steps to reproduce the behavior:

  1. Import object controls
  2. Enable autorotate [ controls.autoRotate = true; ]
  3. Test the scene at two different refresh rates, the auto rotate speed will change depending on the refresh rate of the host computer.
  4. (Make sure to use chrome, firefox caps the framerate by default)
  • Device: [Desktop, Mobile]
  • OS: [Windows, MacOS, Linux, Android, iOS]
  • Browser: [Chrome]
  • Three.js version: [Latest]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions