How to limit the frame rate in the game, I want to make a menu with a choice of fps: 30, 60, and 120 fps.
Who knows how to implement it?
Develop games in your browser. Powerful, performant & highly capable.
Afaik this is not possible. The only solution I've seen was faking a lower framerate by skipping some frames. Which will be very difficult to do right and will probably not look good anyway.
This is what I saw too
Browsers don't currently provide a good way to limit the framerate. You can star this issue to show support for it in Chrome though: https://bugs.chromium.org/p/chromium/issues/detail?id=485600