Fps

How can I make a FPS counter with a simple dynamic text and a script?

:slight_smile:

nice thanx Canadian… i needed that a little while ago

[whisper]Alberta++[/whisper]

Ya should’ve asked, anyways glad it helped :thumb:

[whisper]Alberta = Number.POSITIVE_INFINITY;[/whisper]

wouldnt this work


var frameRate:Number = 0
onEnterFrame=function(){
frameRate++;
}
getRate = setInterval(function(){
trace("Frame rate = "+frameRate);
frameRate = 0;
}, 1000);

It’s the exact same thing . . .