Is it possible to get the FPS cap or the maximum fps?

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
1 Like

I will try to calculate the mean. But is there no direct method of getting the maximum FPS?

Not that im aware of no unfortunately.

1 Like

Question, how will I get the data set? nvm I found a way

You could use the function Workspace:GetRealPhysicsFPS for this purpose.

Fairly certain this is for just Rendering Physics? i might be wrong though.

It should still measure FPS nonetheless

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.