Is it possible to show FPS? [NO REP]
#1

I want to know, is it possible to get players FPS (frames per second) and show it in a textdraw? And if it's possible, can anyone give me an example how to do it?
Reply
#2

You can get a player's FPS using SetPlayerDrunkLevel. Every second they lose their FPS from that level, so if you set the level to currentlevel+150 (so it doesn't disturb anything) then check how much it goes down by after a second you get their FPS.
Reply
#3

Hmm.. could you give some examples or the code? Not that advanced yet.
Reply
#4

Look at this

https://sampwiki.blast.hk/wiki/SetPlayerDrunkLevel
Reply
#5

Quote:
Originally Posted by Dan.
Посмотреть сообщение
Hmm.. could you give some examples or the code? Not that advanced yet.
Here's a tutorial on it: https://sampforum.blast.hk/showthread.php?tid=172085

Please use the search engine

-FalconX
Reply
#6

I got that code now, but how to show it in a textdraw?

pawn Код:
format(FPSmsg,20,"FPS: %d", pFPS[i]);
I need that in textdraw, and that the textdraw woud update constantly, please help.
Reply
#7

Quote:
Originally Posted by Dan.
Посмотреть сообщение
I got that code now, but how to show it in a textdraw?

pawn Код:
format(FPSmsg,20,"FPS: %d", pFPS[i]);
I need that in textdraw, and that the textdraw woud update constantly, please help.
http://pastebin.com/Ad15aN5B This is made by 0_x, you can get your requirements from here..

-FalconX
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)