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 regards, Muzak ----- Original Message ----- From: "Dimitrios Bendilas" <[EMAIL PROTECTED]> To: <[email protected]> Sent: Monday, October 16, 2006 8:49 PM Subject: [FlashCoders] Delegates and performance 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 gameplay, to the point where the game became waaaay too slow to play. After exhausting tests I found out that this was caused by the extended use of Delegates with parameters (I always make sure I don't leave garbage sitting around when I destroy objects of all of my classes, so that was not the issue). Spending one week on this, I managed to spot the problem and find a solution, writing a new Delegate class that was taking care of cleaning up function objects. I thought this would interest quite a few people, so I wrote an article on this. You can read at www.zefxis.gr/article-delegates. You can also download the Delegate class I wrote and use it for you projects. I would appreciate any comments on this! Thanks, Dimtirios _______________________________________________ [email protected] 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

