node-3d icon indicating copy to clipboard operation
node-3d copied to clipboard

limit the FPS

Open BasToTheMax opened this issue 3 years ago • 1 comments

How can I set a max FPS?

BasToTheMax avatar Sep 27 '22 08:09 BasToTheMax

My guess would be to set vsync to true in window construction parameters. Or if that doesn't help, to generate frames "manually".

see https://github.com/node-3d/3d-core-raub#initopts--

  • opts.vsync
  • requestAnimationFrame

raub avatar Sep 29 '22 18:09 raub

vsync is now enabled by default

raub avatar Oct 19 '23 15:10 raub