Is there a tool or feature in Roblox that allows me to lower the FPS of the game to test Low FPS situations? I need to test this to see if I need to make something frame-independent or function the same way regardless of the FPS.
Any code in RenderStepped has to complete before the frame can begin rendering, so if you want to slow the frame rate down, just put a wait
statement inside RenderStepped and do some math to figure out how long you want to yield to receive your desired frame rate.
This thread contains everything you’re looking for. It contains code that simulates lower frame rate and a plugin that can do this too
local TARGET_FRAMERATE = 30
while true do
game:GetService("RunService").RenderStepped:Wait()
local t0 = tick()
game:GetService("RunService").Heartbeat:Wait()
repeat until t0 + 1/TARGET_FRAMERATE < tick()
end
5 Likes