Skip to content

Instantly share code, notes, and snippets.

@dklinzh
dklinzh / Overview.md
Created May 15, 2019 05:58 — forked from NSProgrammer/Overview.md
Comparing modern vs legacy graphics context rendering on iOS

legacy = UIGraphicsBeginImageContextWithOptions + UIGraphicsEndImageContext

modern = UIGraphicsImageRendererFormat + UIGraphicsImageRenderer

Take aways:

  • "modern" w/ prefersExtendedRange = NO
    • basically the same perf as "legacy"
    • probably a good idea to adopt since optimizations will likely be in "modern" first
  • "modern" w/ prefersExtendedRange = YES
@dklinzh
dklinzh / Good IOS RTSP Player.md
Created October 20, 2016 06:14 — forked from oc2pcoj/Good IOS RTSP Player.md
iOS RTSP player for IP video cameras