<?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>Cooper Wang Web Design &#187; Lag</title>
	<atom:link href="http://kilocooper.com/tag/lag/feed/" rel="self" type="application/rss+xml" />
	<link>http://kilocooper.com</link>
	<description>攝影,平面設計,網頁設計,網站建置,blog設計</description>
	<lastBuildDate>Thu, 26 Apr 2012 01:46:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>-如何將Flash動畫做得更流暢不lag-</title>
		<link>http://kilocooper.com/2009/11/06/flash-no-lag/</link>
		<comments>http://kilocooper.com/2009/11/06/flash-no-lag/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 03:06:51 +0000</pubDate>
		<dc:creator>Kilocooper</dc:creator>
				<category><![CDATA[網頁設計、分享、記錄]]></category>
		<category><![CDATA[Flash]]></category>
		<category><![CDATA[Lag]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://kilocooper.com/?p=554</guid>
		<description><![CDATA[最近做Flash時常遇到的問題(CPU loading很大)，找了一下相關說明文章，記錄一下..

參考文章：桑河數位科技

Flash Lag(Delay)、動畫遲鈍的改進方案：

★ 儘量少用Alpha漸變效果(例如物件從alpha=0... ]]></description>
			<content:encoded><![CDATA[
<a href="http://kilocooper.com/wp-content/gallery/web-design/flash_icon.jpg" title=""  >
	<img class="ngg-singlepic" src="http://kilocooper.com/wp-content/gallery/cache/329__658x_flash_icon.jpg" alt="flash_icon" title="flash_icon" />
</a>

<p>最近做Flash時常遇到的問題(CPU loading很大)，找了一下相關說明文章，記錄一下..</p>
<p><strong><span id="more-554"></span>參考文章：<a href="http://blog.shanger.net/article.asp?id=95" target="_blank">桑河數位科技</a></strong></p>
<p><span style="color: #407fb3;"><span style="text-decoration: underline;">Flash Lag(Delay)、動畫遲鈍的改進方案：</span></span></p>
<p>★ 儘量少用Alpha漸變效果(例如物件從alpha=0漸變到alpha=100)，尤其是「大物件」做alpha漸變，會讓CPU非常吃力，用補間或是用程式跑都一樣啦。</p>
<p>★ 如果有很多物件要動(移動、縮放都算），一個動完再換一個動，不要一起動。</p>
<p>★ 漸層的向量圖，在Flash裡頭，很容易變成「賤層」，移動時也是吃掉巨量CPU。</p>
<p>★ 任何大範圍、大物件的移動，都會吃掉巨量CPU。</p>
<p>★ 若真的要移動大範圍，儘量把物件變成「單色」之後再說，因為物件顏色越不複雜，就越順。或是「快一點」把他移到定位。</p>
<p>★ 減少不必要的畫面裝飾物，尤其是絢麗的背景，而且還會有動態效果的那種。</p>
<p>★ 用Flash8 的陰影模糊特效，不如在Photoshop 加效果後，輸出PNG再匯入Flash。</p>
<p>★ 「點陣圖」PNG,JPG,GIF，比「向量圖」的處理還快。</p>
<p>★ PNG檔，若有陰影、霧邊，也不要動的太誇張。</p>
<p>★ 同樣的東西，若能在一秒內移動完畢(不影響效果和節奏)，就不要讓他飛兩秒。</p>
<p>★ FPS(影格速率)不要太高，因為蠻多電腦都沒有辦法每秒更新30-40個畫面，若設到40-50fps，那常常只有設計師電腦看的爽而已。</p>
<p>★ 千萬記得殺掉你已經用完的onEnterFrame function。</p>
]]></content:encoded>
			<wfw:commentRss>http://kilocooper.com/2009/11/06/flash-no-lag/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

