Very slow performance with SwiftUI Canvas and Fish Eye Transform sample code

Hello!

SwiftUI canvas looks great for my needs. I tried it out by using the Canvas with Gesture sample code in the "WWDC21 What's New in SwiftUI" session, 22 minutes in. I am running it on Xcode 13.0 Beta on M1 MacBook Air with Big Sur, on the iPad Pro 11 iOS 15 simulator

I maybe get 2 or 3 frames a second, not even close to what is being shown in the video

What am I missing? thx

PS. It's virtually impossible to copy sample code in the MacOS WWDC Developer app

I updated an iPad Pro to iOS15 beta to run the Canvas test on device and its the same thing, barely getting 1 frame a second

I'm getting faster performance (MacBook Pro macOS Monterey Beta 3), but it's hard to tell because it's all Swift symbols. It would have been really nice had Apple provided source that actually matched what was shown in the video. Short of exporting all the symbol names to a text file via the SF Symbols app and then reading them in and building and array of symbols that way (yuck), there doesn't seem to be a way to easily enumerate them.

I have no idea why everything feels so cagey when they talk about SwiftUI. It always seems to be something in the way.

Very slow performance with SwiftUI Canvas and Fish Eye Transform sample code
 
 
Q