1
Projects / Re: [Small Game] Unitem
« on: January 18, 2013 »Thanks for testing. Interesting to hear the difference performance issue on Galaxy SII. And you are right. With
this game I use only normal div elements with CSS3. As far as the browser supports it, the CSS3 transition should
be hardware accelerated - if not, it fall backs on normal rendering (updating position via javascript).
I don't know for certain if this is the problem but it could be relevant. From this page: http://www.html5rocks.com/en/tutorials/speed/html5/
Quote
Currently most browsers only use GPU acceleration when they have a strong indication that an HTML element would benefit from it. The strongest indication is that a 3D transformation was applied to it. Now you might not really want to apply a 3D transformation, but still gain the benefits from GPU acceleration - no problem. Simply apply the identity transformation:
-webkit-transform: translateZ(0);
This might make sense of why the fade/rotate works nicely but a simple translation doesn't. Could be clutching at straws but worth a shot?
