News for hackers. Stuff that matters.
Re:I made an iPhone game with PhoneGap and won't do it again by youdounderstand on Saturday November 26, 2016 @06:13PM (#13046566)
Thanks. I assumed iOS was like Windows. Although Windows also has scroller controls that you create on the UI thread but delegate the actual event handling to the compositor.
Re:I made an iPhone game with PhoneGap and won't do it again by barrkel on Saturday November 26, 2016 @06:40PM (#13046702)
A compositor can only do scrolling if the app is written with a retained mode API. The low-level APIs in Windows are immediate mode, whether GDI or Direct2D.

For most of time, ScrollWindow / ScrollWindowEx was how you scrolled. It doesn't know what to draw in the invalidated region because it's an immediate mode API.

In Direct2D you can use e.g. a translation to get the renderer to draw a bigger bitmap in a different section of the window, but you need to render the bigger bitmap (i.e. assemble your own retained mode). There's no free lunch.

Re:I made an iPhone game with PhoneGap and won't do it again by youdounderstand on Saturday November 26, 2016 @06:55PM (#13046759)
I'm talking about the UWP/XAML/DirectComposition world, which admittedly is not game-related.