generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: FPS

Previous Thread :: Next Thread 
unholysoda is not online. unholysoda
Joined: 15 May 2010
Total Posts: 9024
24 Aug 2013 04:08 PM
Would it be possible to calculate a players FPS?
If so, how?

http://www.roblox.com/My/Groups.aspx?gid=66545
Report Abuse
ZachBloxx is not online. ZachBloxx
Joined: 26 Jun 2013
Total Posts: 2833
24 Aug 2013 04:11 PM
Distance = (Camera.CoordinateFrame.p - Camera.Focus.p).magnitude

Like this?
Report Abuse
unholysoda is not online. unholysoda
Joined: 15 May 2010
Total Posts: 9024
24 Aug 2013 04:14 PM
I guess I should have specified which FPS I meant.

I am trying to figure out what a players frames per second is.

http://www.roblox.com/My/Groups.aspx?gid=66545
Report Abuse
ZachBloxx is not online. ZachBloxx
Joined: 26 Jun 2013
Total Posts: 2833
24 Aug 2013 04:21 PM
Yes, I thought you meant frames per second, but I wasn't positive.

Anyway, I believe almost all people have at least 24 FPS. I found this formula for calculating FPS: time = time * 0.9 + last_frame * 0.1
Report Abuse
mitchpat9999 is not online. mitchpat9999
Joined: 19 Jun 2011
Total Posts: 2281
24 Aug 2013 04:50 PM
or you could just go in-game and press control+f1
Report Abuse
ZachBloxx is not online. ZachBloxx
Joined: 26 Jun 2013
Total Posts: 2833
24 Aug 2013 04:51 PM
You can't get that information into a script.
Report Abuse
BruceAB12 is not online. BruceAB12
Joined: 19 Jan 2012
Total Posts: 3238
24 Aug 2013 06:00 PM
runService = game:service("RunService")
runService.Stepped:connect(function() frames = frames + 2 end)
frames = 0
while true do
wait(1)
print( "FPS: " .. frames)
frames = 0
end

Maybe this
:P
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image