Apple Watch is encoding each frame as PNG
lionet.livejournal.com
Apple Watch is encoding each frame as PNG
1–10 of 35 posts
Re: Apple Watch is encoding each frame as PNG
#2Re: Apple Watch is encoding each frame as PNG
#3I think I'm more impressed that LiveJournal is still around 10 years after it first came out.
Re: Apple Watch is encoding each frame as PNG
#4I think I'm more impressed that LiveJournal is still around 10 years after it first came out.
Re: Apple Watch is encoding each frame as PNG
#5I think I'm more impressed that LiveJournal is still around 10 years after it first came out.
Re: Apple Watch is encoding each frame as PNG
#6Some benchmarks on iPhone 6 are here: https://browser.primatelabs.com/geekbench3/4423501
e.g., JPEG is 15x faster to compress and 2.5x faster to decompress.
Re: Apple Watch is encoding each frame as PNG
#7 In the end of the day, the watch battery is
there just to shuffle these .PNGs around. When
Apple realizes how to avoid that, the watch
will last for a week instead of hours.Re: Apple Watch is encoding each frame as PNG
#8Apple's own apps don't have this restriction, and I can't see a good one for 3rd party apps to have it, either -- hopefully they'll open up a full API in the future.
Re: Apple Watch is encoding each frame as PNG
#9> In the end of the day, the watch battery is there just to shuffle these .PNGs around. When Apple realizes how to avoid that, the watch will last for a week instead of hours.
Drawing every frame using CoreGraphics is a terrible idea, on any iOS device. Just like any platform, you have to understand at least the basics of the underlying architecture if you want to write efficient code.
I happened to make the built-in Stopwatch app on the watch, which displays an animated graph very similar to his. Suffice it to say, I did not use a CADisplayLink and CoreGraphics at 60fps. Especially considering my graph is horizontally scrollable by the user.
Even if WatchKit still doesn't provide a more efficient way to do this (I don't know; I've never used WatchKit), rest assured that Apple's apps certainly don't use this method, so the week-long battery life claim is just a dream, unfortunately.
Re: Apple Watch is encoding each frame as PNG
#10The big take-away: In the end of the day, the watch battery is there just to shuffle these .PNGs around. When Apple realizes how to avoid that, the watch will last for a week instead of hours.