ãã®è¨äºã§ã®ãã¼ã¸ã§ã³
Unity 5.2.2f1 Personal
Xcode 7.1
ã¯ããã«
ããæãä½ã£ã¦ãã²ã¼ã ã®ã¡ã¢ãªä½¿ç¨éã確èªããããããäºã«ãªã£ã¦ãã¾ããã
使ç¨ã¡ã¢ãª 331MB |
主ãªåå ã¯ãã¯ã¹ãã£ã§ãåç´ã«éãå¤ãããµã¤ãºã大ããã£ãã®ã§ããã
è²ã
ã¨æ¹åããã使ç¨ã¡ã¢ãªãçµæ§æ¸ããäºãåºæ¥ãã®ã§ãä»åã¯ãã®æ¹æ³ãã¾ã¨ããè¨äºã§ãã
使ç¨ã¡ã¢ãªã®ç¢ºèªæ¹æ³
ä»åã使ç¨ã¡ã¢ãªã®ç¢ºèªã¯Xcodeã§è¡ãã¾ããã
確èªæ¹æ³ã¯ã¢ããªå®è¡ä¸ã«ãå·¦å´ã®ã¡ãã¥ã¼ããMemoryãé¸ã¶ã ãã§ãã
ãªãã使ç¨ãã端æ«ã¯iPhone 6s Plusã§ãã
Xcode以å¤ã«ã以ä¸ã®ãããªãã®ã使ã£ã¦ç¢ºèªããæ¹æ³ãããã¾ãã
AllocationStats - Unify Community Wiki
ãã¯ã¹ãã£ã®è¨å®
ä½ã¯ã¨ããããã¯ã¹ãã£ã®è¨å®ãéè¦ã§ãã
Read/Write Enabled
ãã¯ã¹ãã£ãã¼ã¿ã«ã¹ã¯ãªããããã¢ã¯ã»ã¹ã§ããããã«ããé ç®ã§ããã
ãªãã¨ããããæå¹ã«ãã¦ããã¨å¿ è¦ãªã¡ã¢ãªéãåã«ãªãã¾ãã
ä½æããããã¯ã¹ãã£ãã¼ã¿ã¯ããã¯ã¹ãã£ã¢ã»ããã¨ãã¦å¿ è¦ãªã¡ã¢ãªéã¯åã¨ãªãã¾ããå¿ ãå¿ è¦ãªå ´åã®ã¿ä½¿ç¨ãã¦ãã ããã
æ®éã¯ç¡å¹ã«ãªã£ã¦ããã¯ããªã®ã§ããã以åãããèªåã§æå¹ã«ãã¦ãã¾ã£ã¦ã¾ããã
å¿
è¦ãªæã ãæå¹ã«ãã¾ãããã
Max Size
ç»åã®æ大ãµã¤ãºã決ããMax Sizeãåºæ¥ãã ãå°ããããæ¹ããã¡ããããã§ãã
NGUIã®ã¢ãã©ã¹ãªããµã¤ãºãå°ãããã¦ããå£åããã ãã§è¡¨ç¤ºãããµã¤ãºã¯å¤ãããªãã®ã§
æ°ã«ãªããªãç¯å²ã§å°ãããã¾ãããã
ééã£ã¦ã1è²ã®èæ¯ã«1024ã¨ãæå®ããªãããã«ã
ããã¾ããããã¾ããã
ã¨ããã1è²ãªãç»åã®å¿
è¦ãããªãã¨ããâ¦â¦ã
Format
Formatãéè¦ã§ã使ç¨ããç»åã«ãã£ã¦æé©ãªãã®ãé¸ã¶å¿ è¦ãããã¾ãã
ééã£ã¦ãå ¨é¨True Colorã§ãããã
ãªãã¦ãã¨ãããã¡ã¢ãªä½¿ç¨éãã¢ããªãµã¤ãºãè¥å¤§åãã¾ããããã
ããã¾ããããã¾ããã
ããã§ãã¡ã¢ãªä½¿ç¨éã§ããè²æ°ãæ¸ããã¨ããã£ã½ã®ã§ãåºæ¥ãéã16bitã«ã
RGB 16 bit
ã¢ã«ãã¡ã¯ä»ããªã 65000 è²ãå§ç¸®ããã DXT ãã©ã¼ãããã¯ã¡ã¢ãªãåæ¸ããä¸è¬çã«ã¯è¦ãç®ãè¯ãã§ãã256x256 ãã¯ã¹ãã£ã«å¯¾ã㦠128 KB è¦ãã¾ãã
ã¡ãã£ã¨å¤ãã§ãããこちらの記事ãã¨ã¦ãåèã«ãªãã¾ãã
ããã¾ã§ç¢ºèªããã¨ããã¡ã¢ãªã100MBã»ã©æ¸ããã¦ãã¾ããã
使ç¨ã¡ã¢ãª 223MB |
ã¾ã ã¾ã å¤ãã§ããã
ä¸èª¬ã«ããã¨(ã©ãã§èãããå¿ãã)ã100MB以å ãªãè¯å¿çã¿ãããªè©±ãããã®ã§ã
ãããããã¾ã§ã¯æ¸ããããæã§ãã
å®è£ æ¹æ³ã®æ¹å
次ã«å®è£
é¨åã®æ¹åã§ãã
å¿ è¦ãªã ãèªã¿è¾¼ã
å½ããåã§ããã使ããªãç»åãèªã¿è¾¼ãã§ããã¨ã¡ã¢ãªã®ç¡é§ã«ãªãã¾ãã
ãªã®ã§ãUIã®ã¢ãã©ã¹ãã·ã¼ã³æ¯ã«åããå¿ è¦ãªãã®ã ãèªã¿è¾¼ãããã«ãã¾ããã
ã¢ãã©ã¹ã®æ°ã¯å¢ããã¢ããªãµã¤ãºãè¥å¹²å¢ããäºã¯ããã¾ãããç¬éçãªã¡ã¢ãªä½¿ç¨éã¯æ¸ãã¾ãã
ä»ã«ãã¹ãã©ã¤ãã¯å ã«èªã¿è¾¼ãã§ããããå¿ è¦ãªæã«å¿ è¦ãªã ãèªã¿è¾¼ãããã«ãã¾ããã
ã¾ããèªã¿è¾¼ã¿ã«æéããããããå ã«å ¨é¨èªã¿è¾¼ãã§ããã
ã¿ãããªå ´åãããã¨æãã®ã§ãããã¯è¨æ©å¿å¤ã«ã
ã·ã¼ã³ç§»åæã«ã¡ã¢ãªè§£æ¾
使ã£ã¦ãªãã¡ã¢ãªã¯è§£æ¾ããã°ã
ã¨ããäºã§ä»¥ä¸ã®ããã«ã¡ã¢ãªã解æ¾ãã¦ãã¾ãã
//GC System.GC.Collect (); //使ã£ã¦ãªãã¢ã»ãããã¢ã³ãã¼ã Resources.UnloadUnusedAssets();
ã¡ã¢ãªè§£æ¾æã«å¦çè½ã¡ããäºãããã®ã§ãã·ã¼ã³ã移åããæã®æ転æã«è¡ã£ã¦ãã¾ãã
ããã§ç¢ºèªããã¨ããã¡ã¢ãªãããã«100MBã»ã©æ¸ããã¦ãã¾ããã
使ç¨ã¡ã¢ãª 115MB |
ç®æ¨ã®100MB以å
ã«ã¯å±ãã¦ãã¾ããããã¨ãããããããããæ¸ãããã°ããããªã¨ã
ãããã«
ã¢ããªã®ãµã¤ãºã¨åæ§ã«ã¡ã¢ãªã®ä½¿ç¨éã横çãã¦ãã¨ããã«è¥å¤§åãã¾ãã¾ããã
ä»å¾ã¯ã²ã¼ã ãä½ã£ã¦ãæä¸ã«ãæèãã¦ãããã¨æã£ã¦ã¯ãã次第ã§ã(:ï¼ã£)âã