Re: [FlashCoders] Delegates and performance

2006-10-24 Thread janosch
zign.com/flashcoders/?q=remove%20delegate > > etc.. > > regards, > Muzak > > - Original Message - > From: "Hans Wichman" <[EMAIL PROTECTED]> > To: "Flashcoders mailing list" < flashcoders@chattyfig.figleaf.com> > Sent: Tuesday, October 2

Re: [FlashCoders] Delegates and performance

2006-10-24 Thread Hans Wichman
st" < flashcoders@chattyfig.figleaf.com> > Sent: Tuesday, October 24, 2006 1:52 PM > Subject: Re: [FlashCoders] Delegates and performance > > > Hi, > i agree, but it is only true, as long as there is a reference to the > inline > function. &g

Re: [FlashCoders] Delegates and performance

2006-10-24 Thread Hans Wichman
quot; Sent: Tuesday, October 24, 2006 1:52 PM Subject: Re: [FlashCoders] Delegates and performance Hi, i agree, but it is only true, as long as there is a reference to the inline function. The text seems to suggest that although the reference to the inline function is gone, it s

Re: [FlashCoders] Delegates and performance

2006-10-24 Thread Muzak
etc.. regards, Muzak - Original Message - From: "Hans Wichman" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Tuesday, October 24, 2006 1:52 PM Subject: Re: [FlashCoders] Delegates and performance Hi, i agree, but it is only true, as long as there is

Re: [FlashCoders] Delegates and performance

2006-10-24 Thread Hans Wichman
Hi, i agree, but it is only true, as long as there is a reference to the inline function. The text seems to suggest that although the reference to the inline function is gone, it still stays on memory. greetz JC On 10/24/06, Alias™ <[EMAIL PROTECTED]> wrote: I think the issue is that due to t

Re: [FlashCoders] Delegates and performance

2006-10-24 Thread Alias™
I think the issue is that due to the use of inner functions, the parameters stay in memory, including the execution scope object. "The scope object as well as the extra parameters might have been deleted from the Delegate function object, but they still remain inside the inline function. Excuse

Re: [FlashCoders] Delegates and performance

2006-10-24 Thread Hans Wichman
Hi, exactly "The garbage collector will not remove references to delegates that are still being used". Doesnt that mean that if you already nicely set your delegates to null, you are done? Example: obj.ref = Delegate.create (otherObj, otherFunc); As long as obj.ref is in memory, otherObj and oth

Re: [FlashCoders] Delegates and performance

2006-10-24 Thread Alias™
> > > > Thanks, > > > > Dimitrios > > > > > > - Original Message ----- > > From: "Steven Sacks | BLITZ" <[EMAIL PROTECTED]> > > To: "Flashcoders mailing list" > > Sent: Friday, October 20, 2006 9:11 PM > >

Re: [FlashCoders] Delegates and performance

2006-10-24 Thread Alias™
The garbage collector will not remove references to delegates that are still being used - only ones that are no longer being referenced by anything else. It uses reference counting, so this will not cause any wierd That's a great article - although I now have to go through all my code and figure

Re: [FlashCoders] Delegates and performance

2006-10-24 Thread Hans Wichman
; <[EMAIL PROTECTED]> > To: "Flashcoders mailing list" > Sent: Friday, October 20, 2006 9:11 PM > Subject: RE: [FlashCoders] Delegates and performance > > > You should look into using MTASC via FLASC to compile your games. Since > games are mostly code, you'll s

Re: [FlashCoders] Delegates and performance

2006-10-24 Thread Alias™
ED]> To: "Flashcoders mailing list" Sent: Friday, October 20, 2006 9:11 PM Subject: RE: [FlashCoders] Delegates and performance You should look into using MTASC via FLASC to compile your games. Since games are mostly code, you'll save yourself a ton of time by using MTASC. The

Re: [FlashCoders] Delegates and performance

2006-10-24 Thread Hans Wichman
Hi Dimitrios, i was reading your article and the referenced article in which it says: Once the inner function is removed from memory (for instance if the object to which the inner function was attached is removed), then the unique reference to the activation object also gets deleted and the garb

RE: [FlashCoders] Delegates and performance

2006-10-23 Thread Steven Sacks | BLITZ
Well, if you're not changing anything in the timeline(s) of the movie (such as those animations or new movieclips), and you're only making a change to the classes, then you'll definitely benefit from using FLASC for those compiles. ___ Flashcoders@chattyf

Re: [FlashCoders] Delegates and performance

2006-10-22 Thread Dimitrios Bendilas
cks | BLITZ" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Friday, October 20, 2006 9:11 PM Subject: RE: [FlashCoders] Delegates and performance You should look into using MTASC via FLASC to compile your games. Since games are mostly code, you'll save yourself a

RE: [FlashCoders] Delegates and performance

2006-10-20 Thread Steven Sacks | BLITZ
You should look into using MTASC via FLASC to compile your games. Since games are mostly code, you'll save yourself a ton of time by using MTASC. The difference in compile time is astounding. MTASC compiles in about one second when the IDE can take much longer. __

Re: [FlashCoders] Delegates and performance

2006-10-20 Thread Dimitrios Bendilas
October 20, 2006 9:08 AM Subject: Re: [FlashCoders] Delegates and performance By the way Dimitrios, Your Delegate Class wouldn't compile with MTASC. ...com/zefxis/utils/Delegate.as:18: characters 3-12 : type error Local variable redefinition : _func Tony __

Re: [FlashCoders] Delegates and performance

2006-10-19 Thread Anthony Lee
By the way Dimitrios, Your Delegate Class wouldn't compile with MTASC. ...com/zefxis/utils/Delegate.as:18: characters 3-12 : type error Local variable redefinition : _func Tony ___ Flashcoders@chattyfig.figleaf.com To change your subscription option

Re: [FlashCoders] Delegates and performance

2006-10-16 Thread Anthony Lee
I thought this would interest quite a few people, so I wrote an article on this. I found your post to be a good practical example of implementing Timothee Groleau's article. Thank you. Tony ___ Flashcoders@chattyfig.figleaf.com To change your subscr

Re: [FlashCoders] Delegates and performance

2006-10-16 Thread Muzak
This has come up before and there should be some stuff in the archives http://muzakdeezign.com/flashcoders/?q=delegate%20garbage%20collection http://muzakdeezign.com/flashcoders/?q=cleaning%20up%20delegate >From 2 years ago: http://www.peterjoel.com/blog/index.php?archive=2004_08_01_archive.xml

Re: [FlashCoders] Delegates and performance

2006-10-16 Thread Hans Wichman
Hi, very interesting, ill be sure to test this out! greetz JC On 10/16/06, Dimitrios Bendilas <[EMAIL PROTECTED]> wrote: Hello everyone, I had a really big issue recently, when I realized that the performance of a large-scale game I built in Flash dropping substantially after 1/2 hour of game