GPUã¢ã¯ã»ã©ã¬ã¼ã¿ã¼ã使ããç°å¢ã§å¼·å¶çã«æå¹ã«ã§ããCSSã®æå®æ¹æ³
CSS Transitions Module Level 3ã§ã¯CSSããããã£ã®æ°å¤ãå¤åããããã®çµæã¢ãã¡ã¼ã·ã§ã³ãªã©ã®å¹æã表ç¾ãããã¨ãã§ãã¾ãããiOSãªã©ã®éåãªã¢ãã¤ã«ç«¯æ«ã§ã¯ã©ããã¦ãã«ã¯ã«ã¯ãã¦ãã¾ãå ´åãå¤ãã§ãã
ç¹ã«è¦ç´ ã®ä½ç½®ãåãããªã©ã®å¦çã¯ã³ã¹ããé«ããããã«ã¯ã«ã¯ããã¨ããããã¹ã ã¼ãºã«ã¢ãã¡ã¼ã·ã§ã³ãã¦ãããªãã¨ããå¤ãã§ãã
iOSã§ã¯CSS3ã«ããGPUã¢ã¯ã»ã©ã¬ã¼ã¿ã¼ã®å©ç¨ãã§ããGPUã¢ã¯ã»ã©ã¬ã¼ã¿ã¼ãONã«ããã¨ãä»ã¾ã§ã«ã¯ã«ã¯ãã¦ããCSSã«ããã¢ãã¡ã¼ã·ã§ã³å¹æãããªãã¹ã ã¼ãºã«ãªãã¾ãã
åºæ¬çã«ã¯3Då¦çãããã¦ããå ´åã«æå¹ã«ãªãã¾ãããGPUã¢ã¯ã»ã©ã¬ã¼ã¿ã¼ã«ããã¢ãã¡ã¼ã·ã§ã³å¦çãè¡ãéãããããã£ã®æå®æ¹æ³ã«ãã£ã¦ã¯iOSã§ãã©ã¤ããã¨ãããã¾ãã¦ãããã®ãã©ã¤ãã¯GPUã¢ã¯ã»ã©ã¬ã¼ã¿ã¼ã®ON/OFFãåãæ¿ãã£ãã¿ã¤ãã³ã°ã§çºçãã¦ããããã§ãGPUã¢ã¯ã»ã©ã¬ã¼ã¿ã¼ãå©ç¨ãããå ´åã¯ã常ã«3Då¦çããããï¼å¸¸ã«ONã«ãã¦ããï¼ã®ãããããã§ãã
3Då¦çã®ã¹ã¤ããï¼ä¾¿å®ä¸ã¹ã¤ããã¨å¼ã³ã¾ããï¼ã«ã¤ãã¦ã¯@ããã®ãããã°ã«æ¸ããã¦ã以ä¸ã®è¨è¿°ã§ãåºæ¥ãã®ã§ãã
target { -webkit-transform: translate3d(0, 0, 0); }
transformããããã£ã使ããããªãå ´åãããã®ã§ãtransformããããã£ãå©ç¨ããªãæ¹æ³ã¨ãã¦
target { -webkit-transform-style: preserve-3d; }
ãã®ããã«transform-styleã«preserve-3dãæå®ããã¨ããã®è¦ç´ ã®ã¢ãã¡ã¼ã·ã§ã³å¦çã«ã¯GPUã¢ã¯ã»ã©ã¬ã¼ã¿ã¼ãå©ç¨ãããããã«ãªãã¾ãã
ææããã£ãã®ã§è¿½è¨ãã¡ãã£ã¨ãããã«ããã£ããã
transform-style: preserve-3d ã¯GPUã¢ã¯ã»ã©ã¬ã¼ã¿ã¼ãONã«ããããã®ããããã£ã§ã¯ããã¾ããã3Då¦çãè¡ãã¨æå®ããã¨ãiOSã§GPUã¢ã¯ã»ã©ã¬ã¼ã¿ã¼ãONã«ãªãã¨ããã ãã§ãã
http://dev.w3.org/csswg/css3-3d-transforms/#transform-style-property
Leave a comment
Trackbacks: 0
- Trackback URL for this entry
- Listed below are links to weblogs that reference
- GPUã¢ã¯ã»ã©ã¬ã¼ã¿ã¼ã使ããç°å¢ã§å¼·å¶çã«æå¹ã«ã§ããCSSã®æå®æ¹æ³ from 5509
Comments: 1 - Leave a comment
ã¡ãªã¿ã«Chromeã§ãGPUã¢ã¯ã»ã©ã¬ã¼ã¿ã¼ã¯æå¹ã«ãªãã¾ãã
about:flags ã§FPSã®ã¨ããæå¹ã«ãã¦ããã¨åãããããã¨æãã¾ã