|
| 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
|
  |
| 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 |
|
|
|
| 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
|
  |
| 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 |
|
|
|
| 24 Aug 2013 04:50 PM |
| or you could just go in-game and press control+f1 |
|
|
| Report Abuse |
|
|
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
|
  |
| 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 |
|
|