Zach (@pxlboy) header
Zach (@pxlboy) profile picture

working on Pixel Boy, a new way to build Metal shaders and interactive software

Tejas
Joined May 2011
Photo by Zach (@pxlboy)Photo by Zach (@pxlboy)Photo by Zach (@pxlboy)Photo by Zach (@pxlboy)Photo by Zach (@pxlboy)Photo by Zach (@pxlboy)Photo by Zach (@pxlboy)Photo by Zach (@pxlboy)Photo by Zach (@pxlboy)Photo by Zach (@pxlboy)
Zach retweeted
Exploring how Shadow of the Colussus rendered fur on the PS2 (pushed a bit on modern tech since we can draw more) This uses procedural strands to make it more interesting, but is way more expensive
17
64
740
17,649
!Habits transforms into a beautiful habit journal on the Duo. This may be my favorite version of the app.
16
13
1
420
17,499
Me next Monday.
654
4,457
712
53,133
4,371,100
There’s more to this SwiftUI vs. Core Animation story, and I’m continuing to dig deeper. The TL;DR: @kzzzf is right that SwiftUI animations can stall in situations where equivalent, already-submitted Core Animation animations continue. I’ve reproduced that and traced several distinct causes in the frameworks: shared update-lock contention, button-related rendering changes that require main-thread reconciliation, and structural changes when animated effects reach identity values. I've also found easy workarounds to most of the issues raised with SwiftUI. But there’s important context: apps should avoid prolonged main-thread work and blocking waits. A two-second main-thread sleep makes an app unresponsive regardless of which UI framework it uses. Core Animation keeping an animation moving is a real advantage, but it doesn’t restore input handling or make that blocked app responsive. A deliberate sleep is an artificial stress test, but the architectural difference it exposes is real. Applications should keep the main thread responsive, and SwiftUI should minimize unnecessary main-thread dependencies. Both can be true. There are mitigations for some of these SwiftUI cases, and it’s reasonable to argue that they shouldn’t be necessary. It’s also unreasonable to conclude that SwiftUI broadly performs poorly from this test alone. Let’s also recognize what SwiftUI provides within its normal UI system that UIKit doesn’t: arbitrary custom animatable data participating in the framework’s animation machinery, trivial native animation of advanced properties, and composable shader effects over supported SwiftUI-rendered content. You describe the animatable values and how they affect your view; SwiftUI handles the timing, interpolation, repetition, and retargeting. Building your own display-link animation engine or replacing your entire UIKit interface with custom Metal rendering isn’t an equivalent framework capability. That flexibility helps explain why SwiftUI’s animation model extends beyond submitting a fixed set of layer-property animations to Core Animation. Custom application-defined presentation can require ongoing client-side evaluation. That doesn’t automatically mean main-thread evaluation, and I’ve verified SwiftUI animations continuing off-main during a main-thread block. Whether they can continue depends on the rendering work involved—not simply whether the application updates @State once or every frame. UIKit is still great. SwiftUI is still great. AppKit may even be great, depending on who you ask 🙃. They also interoperate: SwiftUI uses UIKit infrastructure on iOS, hosting controllers bridge the two, and SwiftUI itself relies on Core Animation for onscreen composition. In fact, every single pixel that SwiftUI renders happens in RBLayer, which is a CALayer (meaning Core Animation is technically involved at all times for all SwiftUI apps). The meaningful comparison here is SwiftUI-managed animation versus explicitly submitted Core Animation animation—not two completely separate rendering universes. Use the framework that fits your needs. These investigations are useful precisely because they reveal concrete tradeoffs, only the real tradeoffs at the core of this discussion—main thread blockage—are bad for any app using either framework. Keeping animations alive during a stall is useful. So is having the absolute flexibility and power of a more modern animation system. Neither excuses prolonged main-thread blockage, and neither justifies a wholesale verdict on something as broad as SwiftUI or UIKit.
3
3
39
3,083
I needed to visualize some color spaces for a video I'm making so I built colorspaces.maxrovensky.com built with @threejs
11
37
1
362
18,575
Pro-tip. Just add “.md” to any HIG link to get the md file so it’s more digestible for your bb ai’s bedtime 🍼 developer.apple.com/tutorial…
Designing for iPhone Duo is live on the HIG. Read it to your ai as a bedtime story 🪩 developer.apple.com/design/h…
27
76
14
745
88,593
Did anyone else notice? 👀 #appleevent
28
77
12
2,613
89,327
markdown editing can be fun actually
40
16
1
877
42,419
✅ contract signed with @bostondynamics, we just officially adopted a robot dog
14
9
4
66
7,421
In the newest version of diffs.com/edit - Edit mode is now stable - Tab completions are live It's called "Diffs," but you can use it just to show or edit single code files as well.
6
11
6
296
24,139
Chappell Roan STUNS in the new Zelda trailer
133
8,502
377
98,058
1,795,530
hey all, I’m getting back into the job market.. I’m talking with a couple of co’s but interested in talking with more. I’m also open to medium/long-term freelance if that’s what you need 17 yrs of iOS/Mac dev (5 years at Apple), shipped dozens of apps, love hard problems
8
20
1
93
7,768
Updated my old iOS shape morphing example using SpriteKit and CoreImage to use pure metal instead and cleaned it up into a Swift library.
2
2
1
8
1,216
Grok Bot is proof that certain ideas haven't really been tried until they're executed perfectly
6
1
1
64
4,615
a walk through memory lane with the studio founders, celebrating 35 years of id Software: @ThatTomHall, @romero, @ID_AA_Carmack
92
671
56
4,806
300,179
mac virtual camera! i can use NeoCam as a virtual camera for discord, zoom, OBS, etc...
1
1
9
554
mac開発者としてこれを作らない選択肢はなかった
macOS but it's a GameCube controller
41
251
14
4,618
383,799
For the updated app icon of Tunely, a Music Visualizer, the goal was to aim for something Winamp inspired.
12
3
1
330
11,789
7
18
247
7,359