May 03, 2024, 02:15:41 AMLatest Member: Clydepaf

FPS Counter.

Started by Connor, May 22, 2011, 08:08:30 PM

Previous topic - Next topic

Connor

This script mightt work? :P


onClipEvent (load)

{

    frameCount = theTime = elapsed = 0;

    _root.FPS = 0;

}

onClipEvent (enterFrame) {

   ++frameCount;

   theTime = getTimer()-elapsed;

   _root.FPS = Math.round(1000*frameCount/theTime);

   if (frameCount == 33) {

      elapsed = getTimer();

      frameCount = 0;

   }

   // end if

}



(\__/)
( ~.~)   This is a bunny. He will rule the world!!! (With me ofc)
(")_(")

Redshadow

Quote from: Connor on May 28, 2011, 12:01:01 PM
This script mightt work? :P


onClipEvent (load)

{

    frameCount = theTime = elapsed = 0;

    _root.FPS = 0;

}

onClipEvent (enterFrame) {

   ++frameCount;

   theTime = getTimer()-elapsed;

   _root.FPS = Math.round(1000*frameCount/theTime);

   if (frameCount == 33) {

      elapsed = getTimer();

      frameCount = 0;

   }

   // end if

}



wat?

That looks like javascript, lol. Also, we have no way of modifying the client on a source code level.

If I recall correctly, enabling debug mode shows ping (how well you connect to other users in the room).



mo9

May 28, 2011, 07:26:09 PM #17 Last Edit: May 29, 2011, 08:27:10 AM by mo9
btw is the client coded in c#/C++ or java .. ?
ZeaL Rank 1 BvB, just because


vv secks box

Tekimoto


Redshadow

It's coded in C++.

obviously not java, lol



Tekimoto

But the login and channel servers are in C# am I right?

Redshadow

Quote from: Tekimoto on May 29, 2011, 05:29:47 AM
But the login and channel servers are in C# am I right?

Oh, yeah. Thought you were talking about the client.



Tekimoto

Ehh yeah he was xD didnt see

Copyright © ZylonGaming 2009 - 2024
-Terms of Use-