Note: This is for Windows only and non-Windows users do not need it because the frame rate is already unlocked.
Also, this does not work with MBP right now. An official MBP update will be released soon which includes this patch.
By default, the Windows version of Marble Blast has its frame rate capped to 64 FPS due to an oversight by GarageGames in the game's timing code. This uses my engine extension system to fix that and allow frame rates up to 1000 FPS.
This is mainly intended for people like me who use a monitor with a refresh rate higher than 60 Hz, but it can also be useful for practice runs at a slower time scale or mod developers wishing to benchmark their code. If you don't fall into any of those categories, then to be honest you won't really have any use for this and you won't notice a difference when it's turned on.
Also note that this will not make your game any faster if you cannot already achieve a frame rate of 64 FPS.
Installation
Download the zip file below and extract all of its contents directly to your Marble Blast installation directory. Double-click the batch file named "MBExtender - Install". If all goes well, it should say that installation succeeded. Marble Blast's frame rate should now be unlocked. Type metrics(fps) into the console to test.
To uninstall, double-click the batch file named "MBExtender - Uninstall".
TorqueScript Functions
This plugin adds a couple of new functions to TorqueScript which can be used to control the game's frame rate more tightly:
- enableFrameRateUnlock(enabled) - Enables or disables the plugin. Pass in true to enable and false to disable. The plugin is enabled by default.
- setTickInterval(msec) - Sets the interval (in milliseconds) between game ticks. Defaults to 1. Useful for testing a mod under low frame rate conditions. To force a particular frame rate, pass in (1000 / (desired frame rate)).
- setTimeScale(scale) - Sets the rate at which physics run relative to the frame rate. For example, 0.5 = half speed, 1 = normal speed, and 2 = double speed. Useful for practice runs (thanks mfpwnsall for inspiring this).
FAQ
I'm getting "Access Denied" when i try to install this. Watdo?
Right-click the installer file and select "Run as administrator."
I'm only getting around 35 FPS right now. Will this make my game run faster?
No. All this does is prevent fast computers from being capped at 64 FPS.
Help! I'm getting screen tearing issues!
This is happening because you are running the game in fullscreen mode with vsync turned off. Either turn vsync on by running setVerticalSync(true) in the console or switch to windowed mode.
Okay, I enabled vsync, but the frame rate is fluctuating around my monitor's refresh rate. Why?
Marble Blast's engine requires rendering to be in sync with the physics, and time increments have to be in a whole number of milliseconds. As far as I am aware, there is nothing that can be done about this. I might be able to somewhat mitigate this problem in a future patch but it can't be resolved completely.
I set the time scale really low and it's making the game lag. Why?
This is related to the answer above. Because time increments have to be done in a whole number of milliseconds, setting the time scale to something like 0.1 will mean that physics, and therefore the renderer, can only run 0.1 * 1000 = 100 times per second.
Is PQ out yet?
No.
Download
Download from MediaFire (361 KB)
Source Code on GitHub
Screenshots
"You know you've spelled something wrong when the only search results are Jeff convos" - HiGuy