harryh Posted May 10, 2014 Posted May 10, 2014 Is there any function in MTA to get frames per second.
Castillo Posted May 10, 2014 Posted May 10, 2014 No, there isn't. But you can easily make one using onClientRender and getTickCount.
.:HyPeX:. Posted May 11, 2014 Posted May 11, 2014 Just somewhere in your client.. local FpsTickCount = getTickCount() local FpsCount = 0 local FpsResult = 0 function FPS() local now = getTickCount() FpsCount = FpsCount + 1 if now - FpsTickCount > 1000 then FpsTickCount = getTickCount() FpsResult = FpsCount FpsCount = 0 end end addEventHandler("onClientRender", root, FPS)
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now