Ask a Question related to Macromedia Flash Actionscript, Design and Development.
-
somaBoy MX #1
checking actual framerate
Hi,
I made a site which uses horizontal scrolling navigation (check:
[url]http://www.esthervenrooy.com[/url]) Not surprisingly, the scrolling is far from
smooth on older machines. I would like to be able to test the actual
framerate of the movie on the client machine, so when I detect a very slow
fps I can just make the navigation skip to the next section without
scrolling...
Anybody have function/idea for that?
..soma
somaBoy MX Guest
-
Application frameRate???
Can anybody explain to me what for is frameRate property. It seems that nothing changes when I change framerate of my flex application to 120. Does... -
chromelib framerate display dissapears when I switchcamera
Does anyone know why it would do this? Cheers Michael UK -
Chrome Lib - framerate display help needed
Please forgive my impatience, I have only been using the ChromeLib for 20 minutes. Just thought it quicker to ask the forum lol. I added the... -
Use maximum framerate?
Hello, I was wondering if there is any reason *not* to use the maximum framerate (120 fps) in game development. (bugs, unexpected errors etc.) ... -
Altering speed of playhead (framerate?)
Hi guys, Could anyone please tell me how i alter the speed at which my projectors playback. Am i right in thinking that the default is 30? I... -
CesareRocchi webforumsuser@macromedia.com #2
Re:checking actual framerate
AFAIK there is no way to get the framerate of an swf. I saw some experiment to calculate an estimate of fps or to estimate the capacilities of client's machines, but ... I don't remember where sorry.
CesareRocchi webforumsuser@macromedia.com Guest
-
André Heßler #3
Re: checking actual framerate
Perhaps you can use the getTimer()-function to find out how long an interval
of a few frames takes?
....but I dont know!
-André-
André Heßler Guest
-
eonyron webforumsuser@macromedia.com #4
Re: checking actual framerate
When you say older machines I assume you mean machines with less RAM. If that is true it might help you to remember that flash is an embedded object and html can call upon several programs (including itself) to check system info before you load any swf object.
eonyron webforumsuser@macromedia.com Guest
-
Chris Hayes #5
Re: checking actual framerate
I'm pretty sure there is an extension in the Exchange that will do this.
look up zShowFPS in the Exchange
- Hayes
Chris Hayes Guest
-
Peter Blumenthal #6
Re: checking actual framerate
Here's one I made earlier. Of course, if you don't need to actuall *display*
the frame rate, you can get rid of all the textField stuff and just use the
variable values.
//--------------------------------------------------------------------------
-----------
// Creates timer a rough frames per second counter...
//--------------------------------------------------------------------------
-----------
//create clip
_root.createEmptyMovieClip("counter", 2);
//set textformat
counterText = new TextFormat();
counterText.font = "courier";
counterText.size = 12;
counterText.bold = true;
counterText.color = 0xFF0000;
//create text field
counter.createTextField("label", 1, 10, 10, 0, 0);
counter.label.autoSize = "left";
counter.label.text = "fps: ";
counter.label.setTextFormat(counterText);
counter.createTextField("fps", 2, counter.label._width, 10, 0, 0);
counter.fps.autoSize = "left";
counter.fps.type = "dynamic";
counter.fps.variable = "_root.counter.fpsDisp";
counter.fps.setNewTextFormat(counterText);
counter.startTime = getTimer();
//posotion
counter._y -= counter.label._height*2;
//enterframe handler
counter.onEnterFrame = function() {
this.allTime = getTimer()-this.startTime;
this.fpsDisp = Math.round(1000/this.allTime);
this.startTime = getTimer();
};
//--------------------------------------------------------------------------
-----------
// END TIMER
//--------------------------------------------------------------------------
-----------
hth
}`¬P
--
---------------------------------------
[url]http://www.phageinteractive.com[/url]
PhageInteractive Ltd.
remove mm_ to mail
---------------------------------------
'I wish we lived in a world where it was possible to be religious and think
at the same time.' - Jonh Graves
Peter Blumenthal Guest
-
somaBoy MX #7
Re: checking actual framerate
Thanks for your help, all of you...
I did the following:
Made a movieClip with some complex alpha tweened animation which plays
offstage.
I check with getTimer() how long it takes for the movie to complete. If the
value returned is more than double the time it should take at the movie's
author-time framerate, I disable the animated navigation.
Seems to do the job.
..soma
somaBoy MX Guest



Reply With Quote

