Limit the framerate of your games!

FPS Manager for Construct 3, is a simple plugin that allows you to set a maximum framerate to your game.

This is a port and extension of Skymen's Limit FPS plugin.

Framerate Modes

Timing in JavaScript (the technology Construct works on), is tricky, it's practically imposible to ensure constant fixed FPS, due to web technology limitations. To help with that, FPS Manager gives you three different modes in which the internal game-clock of Construct is overriden:

  • Max FPS: The original and recommended method. It consists of dropping any frames that have passed the maximum framerate.
  • Fixed FPS: Tries to maintain a constant FPS by adjusting the clock using Skymen's setTimeout while-loop method.
  • Forked FPS: Divides the logic and rendering into two different clocks. The logic-clock using setTimeout and the render-clock using Construct's RAF.

Recommendations and Caveats

Set the minimum framerate from Construct to zero and it's maximum to infinite.


If you can, also set the project's framerate mode to unlimited frames. Although, from experience, this could cause some edge-cases in bigger projects that makes them crash (this is a Construct thing).

This doesn't bypasses V-Sync. But when exporting to Chromium, you can try using the following flags "--disable-gpu-vsync --disable-frame-rate-limit".

Scirra hasn't tried to implement this since browsers don't really give this kind of fine control, and will have problems scheduling GPU calls that don't match your real framerate, so any implementation will run into issues. Thus, you should still be using delta-time.


Jail Break is required to be added on the project.

Published 12 hours ago
StatusReleased
CategoryTool
PlatformsHTML5
AuthorMaster Pose
Made withConstruct
Tagsaddon, construct, Construct 2, construct-3, FPS, framerate, Hacking, mod, Moddable, optimization
Code licenseMIT License
LinksGitHub

Download

Download NowName your own price

Click download now to get access to the following files:

MasterPose_FpsManager-1.0.0.0.c3addon 8.6 kB
demo.c3p 57 kB

Leave a comment

Log in with itch.io to leave a comment.