Re: [Flashcoders] Help: test EventDispatcher speed please

2007-03-21 Thread Francis Bourre

hello!

As I know, I didn't ask ppl to test an application or a site I made.
That's a test that to enlight the fact that EventDispatcher behaves  
weird on mac player.
I think ppl should be interested by these results mac vs pc/linux,  
don't you think ? :)


francis

Le 21 mars 07 à 15:15, Merrill, Jason a écrit :


http://osflash.org/flashcoders/etiquette
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


[Flashcoders] Help: test EventDispatcher speed please

2007-03-20 Thread Francis Bourre

Hello list !

I noticed something weird about EventDispatcher execution speed in my  
mac player.
EventDispatcher.dispatchEvent execution is slow compared to a custom  
dispatcher implementation (named EventBroadcaster).


On Mac, EventDispatcher is slow:
EventBroadcaster: 2925
EventDispatcher: 12438

On Pc, EventDispatcher is faster.
EventBroadcaster: 3908
EventDispatcher: 3407

Can you please report the values you got (displayed on screen) when  
you open the url below and the browser you used for testing.

It takes few seconds to initialize (bench with iterations)

http://www.tweenpix.net/TestEventBroadcaster.swf

Any clue is welcome. ;)
Thanks in advance guys !

francis



Content of the test:

var tf1 : TextField = new TextField();
var tf2 : TextField = new TextField();
var tf3 : TextField = new TextField();
tf2.y += 30;
tf3.y += 60;
tf1.width = tf2.width = tf3.width = 150;
this.addChild( tf1 );
this.addChild( tf2 );
this.addChild( tf3 );

var holder : Array = new Array();
var l1 : Number = 1;
var l2 : Number = 1;
var lNum : Number = 500;

var eb : EventBroadcaster = new EventBroadcaster ( this );
var ed : EventDispatcher = new EventDispatcher ();

while( --lNum -(-1) )
{
var tg : Object = {foo:function( e : Event ):void{ this.e = e.type; }};
ed.addEventListener( foo, tg.foo );
eb.addEventListener( foo, tg );
holder.push( tg );
}

var t : Number = 0;
var e : Event = new Event( foo );

//
t = getTimer();
while( --l2 -(-1)) eb.broadcastEvent( e );
t = getTimer() - t;
trace( EventBroadcaster: , t );
tf1.text = EventBroadcaster:  + t;
//
t = getTimer();
while( --l1 -(-1)) ed.dispatchEvent( e );
t = getTimer() - t;
trace( EventDispatcher: , t );
tf2.text = EventDispatcher:  + t;

tf3.text = flash.system.Capabilities.version;
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Q:Framework ARP vs PixLib

2006-11-06 Thread Francis Bourre

hello !

pixlib isn't targeted on games devt for a while, maybe till the beginning.
It's got an architectural framework inside too (mvc, frontcontroller, 
hashcode factory, moviecliphelper, modellocator ...)  + lot of features 
(collections, xml, flv, sound, preloading, remoting package with no mx 
dependencies ...).


try it for the fun! ;)

francis

- Original Message - 
From: Jamie S [EMAIL PROTECTED]

To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
Sent: Monday, November 06, 2006 4:09 PM
Subject: Re: [Flashcoders] Q:Framework ARP vs PixLib



I have been using the ARP Framework for a while and I can recommend it
highly. I don't have any experience with using the PixLib framework but 
from

what I read of the documentation it seems like it had it's start as a
framework for building games and that's where it is probably most useful
(with tools for doing tweens, measuring time intervals, and passing xml 
data

objects to and from the server).

The ARP framework does assume that you are building more of a form based
application and that you are probably using flash remoting and/or flex
(which isn't always the case). But I do like it's implementation of the
Command Design Pattern which really makes it easy to get your head around 
a

project. Basically the user does something to trigger an event, the
controller issues a command, the command carries out it's assigned task 
and

returns the result to the controller.

Jamie

On 11/3/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:


Hi
I'd like to adopt a coding framework that is scalable and that is 
flexible

enough to work with on a huge variety of projects.

Has anyone on the list compared PixLib and ARP?

Do both offer good implementations of MVC?

I've heard good things about both but haven't used either yet.

Is one 'better' than another?
Jim Bachalo

[e] jbach at bitstream.ca
[c] 416.668.0034
[w] www.bitstream.ca

...all improvisation is life in search of a style.
 - Bruce Mau,'LifeStyle'
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com




___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com