I’m curious. Is it possible to get the FPS cap or the maximum fps like arsenal? (Correct me if im wrong)
Then set a TextLabel’s text to it? (The FPS cap or the maximum fps)
And yes, I could just set the text to 60. Since it is the default FPS cap. But doesn’t the players that play in desktop/laptop have the ability to modify the fps cap?
For maximum FPS, you can take for eg 3 seconds of player FPS. Then calculate the mean of those numbers per second. That would be an estimate, but could lack alot of inconsistencys.
As for measuring FPS, use RunService
local RunService = game:GetService("RunService")
local Frames = 0
RunService.RenderStepped:Connect(function()
Frames += 1
end)
while task.wait(1) do
print(Frames) -- This is how many frames the player got in the previous second
Frames = 0 -- Reset it
end