Re:I made an iPhone game with PhoneGap and won't do it again
by xenadu02 on Saturday November 26, 2016 @06:59PM
(#13046777)
This is not strictly correct. CoreAnimation does it's work in a background thread, so the mechanical work of scrolling pixels is not done on the UI thread unless you are doing custom drawing. Under the covers its a texture so the scrolling is really just translation.
[ Parent
| on HN ]
Re:I made an iPhone game with PhoneGap and won't do it again
by panic on Saturday November 26, 2016 @08:00PM
(#13047058)
If you want to be pedantic, this isn't quite right either. CoreAnimation does some work on the main thread to encode layer properties and send them to the render server, which is in another process, not another thread.
The important part isn't the amount of work it takes to render, it's that event handling is serialized with all the other stuff happening on the main thread.