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?
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
Develop games in your browser. Powerful, performant & highly capable.
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