Re: [Flashcoders] Could this be done more elegant.

2010-08-13 Thread Jiri
Coders List Subject: Re: [Flashcoders] Could this be done more elegant. This doesn't change the way it works, but you could rewrite the addValue stuff to this: buffer += (fps>= 45) ? 1 : -1; On Fri, Aug 13, 2010 at 4:45 AM, Jiri wrote: Thanx for the answer, I am on a project where the whol

Re: [Flashcoders] Could this be done more elegant.

2010-08-13 Thread Jared
This is a great idea, thanks for sharing never tried to adjust quality like this. Sent from my iPhone On Aug 13, 2010, at 10:36 AM, Ktu wrote: > This doesn't change the way it works, but you could rewrite the addValue > stuff to this: > > buffer += (fps >= 45) ? 1 : -1; > > > > On Fri, Aug

RE: [Flashcoders] Could this be done more elegant.

2010-08-13 Thread Cor
ers List Subject: Re: [Flashcoders] Could this be done more elegant. This doesn't change the way it works, but you could rewrite the addValue stuff to this: buffer += (fps >= 45) ? 1 : -1; On Fri, Aug 13, 2010 at 4:45 AM, Jiri wrote: > Thanx for the answer, I am on a project where

Re: [Flashcoders] Could this be done more elegant.

2010-08-13 Thread Ktu
This doesn't change the way it works, but you could rewrite the addValue stuff to this: buffer += (fps >= 45) ? 1 : -1; On Fri, Aug 13, 2010 at 4:45 AM, Jiri wrote: > Thanx for the answer, I am on a project where the whole thing is allready > set up. The quality is now set to BEST as soon as

Re: [Flashcoders] Could this be done more elegant.

2010-08-13 Thread Jiri
Thanx for the answer, I am on a project where the whole thing is allready set up. The quality is now set to BEST as soon as the FPS goes under 30 (i used 45 in my example), but on fast machine this results in very short graphical glitches, because it is usually only 1 or 2 frames where the FPS

Re: [Flashcoders] Could this be done more elegant.

2010-08-13 Thread Henrik Andersson
I use a different event than what you are most likely using. I use the Render event. It is a bit more effort since you have to request it again and again, but it is more accurate for the rendered fps. It differs from the enter frame event in that it is not dispatched when the player is skippin

[Flashcoders] Could this be done more elegant.

2010-08-13 Thread Jiri
Hello, I wrote a routine that checks if the fps is below 45 fps for longer then 20 ticks, I toggle the quality of the SWF. If it then after is greater then 45 fps for 20 ticks I toggle quality back up. It works, but out of interested, I was wondering if this could be done in a other more cle