My FPS command.
#5

The Drunk Level drops by the amount of your FPS per SECOND.

That means using that command 2 times in 3 seconds will show the number of frames for the past 3 seconds in total.

You must calculate the time between 2 checks (eg. GetTickCount) and calculate the fps like this (using float the precision will be higher):

Код:
new Float:fps = float(drunklvl_difference) / (float(timepassed_in_ms) / 1000.0);
That will give the correct average FPS (frames/second) for a certain time interval.
Reply


Messages In This Thread
My FPS command. - by ivndosos - 12.03.2018, 21:10
Re: My FPS command. - by ivndosos - 13.03.2018, 09:57
Re: My FPS command. - by Kane - 13.03.2018, 10:02
Re: My FPS command. - by ivndosos - 13.03.2018, 10:36
Re: My FPS command. - by NaS - 13.03.2018, 18:00
Re: My FPS command. - by ivndosos - 15.03.2018, 12:10
Re: My FPS command. - by NaS - 15.03.2018, 12:35

Forum Jump:


Users browsing this thread: 4 Guest(s)