<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>FlashFuck.it &#187; Uncategorized</title>
	<atom:link href="http://www.flashfuck.it/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.flashfuck.it</link>
	<description>flash platform, gaming and 3D</description>
	<lastBuildDate>Mon, 23 Jan 2012 18:11:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>FlashCamp Milan 2011 &#8211; Garbage Collection in the Flash Platform</title>
		<link>http://www.flashfuck.it/2011/05/21/flashcamp-milan-2011-garbage-collection-in-the-flash-platform/</link>
		<comments>http://www.flashfuck.it/2011/05/21/flashcamp-milan-2011-garbage-collection-in-the-flash-platform/#comments</comments>
		<pubDate>Sat, 21 May 2011 13:19:14 +0000</pubDate>
		<dc:creator>pigiuz</dc:creator>
				<category><![CDATA[ActionScript 3]]></category>
		<category><![CDATA[Community]]></category>
		<category><![CDATA[Speaking]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[FlashCamp]]></category>
		<category><![CDATA[Milano]]></category>

		<guid isPermaLink="false">http://www.flashfuck.it/?p=212</guid>
		<description><![CDATA[This post is to summarize my session at the FlashCamp. Here&#8217;s the preso: (italian only) Flashcamp Milan 2011 &#8211; Garbage Collector in the Flash Platform View more presentations from Piergiorgio Niero and here are the examples shown during the session: Garbage collector in action: this example shows the memory allocation behavior. Take a look to [...]]]></description>
			<content:encoded><![CDATA[<p>This post is to summarize my session at the FlashCamp.</p>
<p>Here&#8217;s the preso: (italian only)</p>
<div style="width:425px" id="__ss_8049065"> <strong style="display:block;margin:12px 0 4px"><a href="http://www.slideshare.net/piergiorgioniero/flashcamp-milan-2011-garbage-collector-in-the-flash-platform" title="Flashcamp Milan 2011 - Garbage Collector in the Flash Platform">Flashcamp Milan 2011 &#8211; Garbage Collector in the Flash Platform</a></strong> <iframe src="http://www.slideshare.net/slideshow/embed_code/8049065" width="425" height="355" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe>
<div style="padding:5px 0 12px"> View more <a href="http://www.slideshare.net/">presentations</a> from <a href="http://www.slideshare.net/piergiorgioniero">Piergiorgio Niero</a> </div>
</p></div>
<p>and here are the examples shown during the session:</p>
<p>Garbage collector in action:<br />
this <a href="http://www.flashfuck.it/wp-content/uploads/2011/05/GCinAction.swf">example </a>shows the memory allocation behavior. Take a look to the saw tooth yellow line in the graph.</p>
<p>Weak vs Strong references:<br />
two examples to show the difference between weak and strong references: basically weak do not increment reference count, strong do that.<br />
If you store keys in a dictionary using weak references your keys are getting cleaned by the garbage collector ( <a href="http://www.flashfuck.it/wp-content/uploads/2011/05/Dictionary_Weak_Reference.swf">example</a> )<br />
otherwise the GC doesn&#8217;t clean your keys ( <a href="http://www.flashfuck.it/wp-content/uploads/2011/05/Dictionary_Strong_Reference.swf">example</a> ).</p>
<p>Blitting in order to ease the GC:<br />
The GC iterates through each reachable node starting from the roots, one of these roots is the displaylist. So in order to ease the GC work we could flatten the whole displaylist to one bitmap by leveraging the usage of the blitting technique.<br />
These examples display about 1000 new objects drawn each frame by using the display list ( <a href="http://www.flashfuck.it/wp-content/uploads/2011/05/MarioDisplayList.swf">example </a>) or the blitting technique ( <a href="http://www.flashfuck.it/wp-content/uploads/2011/05/MarioBlitted.swf">example </a>). The difference in performances are not only due to the different compositing techniques (built in compositing when using the displaylist VS manual compositing when using the blitting technique ) but also to the lower number of instances to be collected by the GC.</p>
<p>NOTE: both examples are very cpu intensive</p>
<p>Don&#8217;t let the GC start by using the memory pool technique:<br />
The GC freezes the program when freeing the memory. The memory pool technique consists in reusing the instances of your objects preventing the GC to identify those objects as garbage.<br />
This makes your app memory utilization stable (a straight yellow line ) and removes every glitch due to the garbage collection.<br />
These examples show a simple particle fountain implemented by leveraging the memory pool technique ( <a href="http://www.flashfuck.it/wp-content/uploads/2011/05/ParticlesPool.swf">example </a>) or not ( <a href="http://www.flashfuck.it/wp-content/uploads/2011/05/ParticlesNoPool.swf">example </a>).</p>
<p>Finally:<br />
<a href="http://www.flashfuck.it/wp-content/uploads/2011/05/FlashCampMilano2011GC.zip">here&#8217;s the source</a>, it&#8217;s not the best commented nor the best implemented files out there, but just take a look at them to have a full comprehension of what&#8217;s going on <img src='http://www.flashfuck.it/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>If you need further help, please comment this post and let me know.<br />
ciao</p>
<p>PS: obviously mario copyright is property of nintendo <img src='http://www.flashfuck.it/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.flashfuck.it/2011/05/21/flashcamp-milan-2011-garbage-collection-in-the-flash-platform/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash Camp Milano 2011 &#8211; the day after</title>
		<link>http://www.flashfuck.it/2011/05/21/flash-camp-milano-2011-the-day-after/</link>
		<comments>http://www.flashfuck.it/2011/05/21/flash-camp-milano-2011-the-day-after/#comments</comments>
		<pubDate>Sat, 21 May 2011 08:46:08 +0000</pubDate>
		<dc:creator>pigiuz</dc:creator>
				<category><![CDATA[ActionScript 3]]></category>
		<category><![CDATA[Community]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Speaking]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[conference]]></category>
		<category><![CDATA[FlashCamp]]></category>
		<category><![CDATA[Milan]]></category>
		<category><![CDATA[WhyMCA]]></category>

		<guid isPermaLink="false">http://www.flashfuck.it/?p=206</guid>
		<description><![CDATA[Yesterday it has been a great day! Yesterday we had the FlashCamp here in Milan, hosted by WhyMCA mobile conference (thanks guys). Lots of fun, lots of people (450 nerds) from the most different beliefs (html5ers, javascripters, objective-Cers, androiders, whateverers ), a great happening to spread the word about what you can do with the [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday it has been a great day!<br />
Yesterday we had the FlashCamp here in Milan, hosted by <a href="http://www.whymca.org/">WhyMCA</a> mobile conference (thanks guys).</p>
<p><img class="size-medium wp-image-208 aligncenter" title="whymca-logo" src="http://www.flashfuck.it/wp-content/uploads/2011/05/whymca-logo-300x255.png" alt="Flash Camp at WhyMCA" width="300" height="255" /></p>
<p>Lots of fun, lots of people (450 nerds) from the most different beliefs (html5ers, javascripters, objective-Cers, androiders, whateverers <img src='http://www.flashfuck.it/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ), a great happening to spread the word about what you can do with the flash platform and how it can ease your work when deploying on mobile devices.<br />
Thanks to Adobe we even had a welcome guest: <a href="http://corlan.org/">Mihai Corlan</a>, who presented very cool new stuff putting his hands on Flex Builder 4.5 and the Flex Hero SDK.<br />
Moreover it has been totally the best possible way to meet other people from the community of Milan, <a href="http://theflashmind.com/">TheFlashMind</a>, and to spread the word about our cool AUG <img src='http://www.flashfuck.it/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I really enjoyed the FlashCamp, it has been a pretty unique conference in Italy and it has been even more successful than we expected.<br />
As the camp was in &#8220;Eataly&#8221; we had an Eatalian FlashCamp party at the end, a cool way to make developers meet each other and to make them drunk <img src='http://www.flashfuck.it/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Someone <a href="http://twitter.com/#!/BrunoFonzi/status/71630157114376192">even twitted that it was the best part of the FlashCamp in Milan</a> <img src='http://www.flashfuck.it/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Last but not least: my friend <a href="http://lucamezzalira.com/">Luca </a>already uploaded <a href="http://www.flickr.com/photos/lucamezzalira/sets/72157626766575326/">some pics to his flickr account</a>.</p>
<p>See you at the next camp <img src='http://www.flashfuck.it/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.flashfuck.it/2011/05/21/flash-camp-milano-2011-the-day-after/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flash on the Beach &#8217;09</title>
		<link>http://www.flashfuck.it/2009/07/20/flash-on-the-beach-09/</link>
		<comments>http://www.flashfuck.it/2009/07/20/flash-on-the-beach-09/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 17:03:43 +0000</pubDate>
		<dc:creator>pigiuz</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[conference]]></category>
		<category><![CDATA[fotb]]></category>
		<category><![CDATA[fotb09]]></category>
		<category><![CDATA[schedule]]></category>

		<guid isPermaLink="false">http://www.flashfuck.it/2009/07/20/flash-on-the-beach-09/</guid>
		<description><![CDATA[Just bought my ticket for Flash on the Beach 09! w00t! I really can&#8217;t wait to reach Brighton and attending such a great conference. See you there guys]]></description>
			<content:encoded><![CDATA[<p>Just bought my ticket for Flash on the Beach 09! w00t!<br />
I really can&#8217;t wait to reach Brighton and attending such a great conference.<br />
See you there guys <img src='http://www.flashfuck.it/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
<a href="http://www.flashonthebeach.com"><img alt="" src="http://www.flashonthebeach.com/images/badges/fotb09webbadge.png" title="Flash on the Beach 09" class="alignnone" width="200" height="250" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.flashfuck.it/2009/07/20/flash-on-the-beach-09/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

