If you think about how it works having a sound set to stream on the
timeline so that animations can be synched tightly, you'll understand
how this 'trick' works - the player needs to maintain framerate so
that the audio track and graphical tracks don't lose synch and the
audio streams
I get 23 too, I think there must be something wrong with the FPS counter code.
M
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Michael Kønig
Sent: 02 May 2006 15:37
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Can this be
Try this:
[as]
sTime=getTimer()
count=0
onEnterFrame=function(){
count++
split=getTimer()-sTime
fps=Math.round(count/split*1000)
}
[/as]
Works great for me in the ide.
M
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of
try bumping it up to 31fps and see how it works then.
i'm getting about 24 on my browser (firefox on osx 10.4)
On May 2, 2006, at 10:37 AM, Michael Kønig wrote:
At this link there is a swf embeded in a html with a 5 line script
that measures fps:
http://www.fla10.com/test/test.html
The
I get 28 here.
On 5/2/06, Mike Mountain [EMAIL PROTECTED] wrote:
I get 23 too, I think there must be something wrong with the FPS counter
code.
M
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf
Of Michael Kønig
Sent: 02 May 2006 15:37
To:
Of Mike Mountain
Sent: 02 May 2006 15:45
To: Flashcoders mailing list
Subject: RE: [Flashcoders] Can this be true?
Try this:
[as]
sTime=getTimer()
count=0
onEnterFrame=function(){
count++
split=getTimer()-sTime
fps=Math.round(count/split*1000)
}
[/as]
Works great
: [Flashcoders] Can this be true?
Date: Tue, 2 May 2006 15:45:21 +0100
Try this:
[as]
sTime=getTimer()
count=0
onEnterFrame=function(){
count++
split=getTimer()-sTime
fps=Math.round(count/split*1000)
}
[/as]
Works great for me in the ide.
M
-Original Message-
From
Try with this FPS counter
this.createTextField(fps_txt, 1000, 10, 10, 100, 100);
this.nLastFrame = getTimer();
this.onEnterFrame = function ()
{
var nCurrentFrame = getTimer();
var nFPS = Math.round(1000 / (nCurrentFrame - this.nLastFrame));
this.fps_txt.text = nFPS;
I'm getting 25 in Safari, OS 10.4.6, on a dual 1.8 Ghz PowerMac.
- Josh
On May 2, 2006, at 8:37 AM, Michael Kønig wrote:
At this link there is a swf embeded in a html with a 5 line script
that measures fps:
http://www.fla10.com/test/test.html
The movie is set to 30 fps but plays at
In IE, I'm getting 25 fps.
In Firefox, I'm getting 27.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Michael
Kønig
Sent: Tuesday, May 02, 2006 10:37 AM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Can this be true?
At this link there
Interesting, a movie set at 30fps plays around 29/30 in the ide using the
below code, but does indeed return 23/24 fps in IE.
I knew flash ran better in the ide - but that is quite a difference.
From what I've learnt, that kind of stuff happens even when there's nothing
being processed - ie,
My experience a couple of months ago when creating a racing game was that
there seems to be some kind o frame rate capping.
Whatever computer I tried my game on, I got approximately 20 fpt when I ran
the game in a browser. With the standalone player I could easily play the
same game with frame
I'll give you a precious trick to make the swf run faster :
Using your favorite sound editor, create a new file, add one second of
silence. Save the sound.
Import that sound into flash.
Create a movieclip on stage. Inside the movieClip. Add a few frames, lets
say 25 frames. Add the sound on
PROTECTED]
Reply-To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Can this be true?
Date: Tue, 02 May 2006 12:00:03 -0400
I'll give you a precious trick to make the swf run faster :
Using your
2006 17:23
To: flashcoders@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Can this be true?
I am going to be back by my computer in a couple of hours and I will try
that sound trick.
If that works, I will be completly amazed!
It is exactly an action game I am making so I need to at least
the presumes good coding practices on the internal player code :)
or maybe this has to do with the Browser ... :)) more fun if the
Browser is concerned
cedric
I'll give you a precious trick to make the swf run faster :
Using your favorite sound editor, create a new file, add one second of
Michael Kønig wrote:
The movie is set to 30 fps but plays at around 23 and I have a good
computer!
That's quite possible. The framerate is a top limit, not a bottom gate.
Depending on the content, and what else that computer is being asked to
do at that time, and (if playing in a browser)
@chattyfig.figleaf.com
Subject: Re: [Flashcoders] Can this be true? (is: framerate ABCs)
Date: Tue, 02 May 2006 13:16:14 -0700
Michael Kønig wrote:
The movie is set to 30 fps but plays at around 23 and I have a good
computer!
That's quite possible. The framerate is a top limit, not a bottom gate
? If so does it run scripts in the
scipped frames?
/David
- Original Message -
From: Michael Kønig [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, May 02, 2006 10:42 PM
Subject: Re: [Flashcoders] Can this be true? (is: framerate ABCs)
I noticed it first when i
Michael Kønig wrote:
I guess I am just amazed that a swf looses so many frames per second,
not from scripts or rendering graphics, but simply from being playing in
a bowser. Its just a complet surprise
I don't know if there's anything particularly different about this file
running on that
? If so does it run scripts in the
scipped frames?
/David
- Original Message -
From: Michael Kønig [EMAIL PROTECTED]
To: flashcoders@chattyfig.figleaf.com
Sent: Tuesday, May 02, 2006 10:42 PM
Subject: Re: [Flashcoders] Can this be true? (is: framerate ABCs)
I noticed it first when i
The code is very simple:
setInterval(time, 1000);
Is setInterval so accurate ?
Is it frame based ?
I know you can force it to upade with updateAfterEvent 10 time faster
than framerate.
Anyone know ?
---
erixtekila
http://blog.v-i-a.net/
I get 23/24/23/24/23/24 and finally only 24
--
SalU2
f a r i d | s i l v a | a b o i d
www.e-foco.com.ar
tel: +54 11 4115-0773
cel: 15-5774-8005
Moderador de Salas Dreamweaver y Programación
Multimedia User Group Adobe Argentina
http://www.mmug-ar.com.ar
23 matches
Mail list logo