Post

Replies

Boosts

Views

Activity

Comment on iOS Simulator running metal hangs entire OS when using discrete GPU
So I added a the #pragma unroll(1), and that has made the issue worse, it crashes with anything above 1 pass through the loop. So I did the exact reverse and changed it to #pragma unroll (40) to force it to unroll the entire loop, and now it runs without crashing. It looks like somehow the loop makes it crash. I'm still unable to reproduce it in a minimal test case though, so I'm looking further into it. I'm also seeing slightly different results from the kernels running before this one when running on the discrete GPU, investigating that as well.
Topic: Graphics & Games SubTopic: General Tags:
Jun ’21
Comment on iOS Simulator running metal hangs entire OS when using discrete GPU
So I added a the #pragma unroll(1), and that has made the issue worse, it crashes with anything above 1 pass through the loop. So I did the exact reverse and changed it to #pragma unroll (40) to force it to unroll the entire loop, and now it runs without crashing. It looks like somehow the loop makes it crash. I'm still unable to reproduce it in a minimal test case though, so I'm looking further into it. I'm also seeing slightly different results from the kernels running before this one when running on the discrete GPU, investigating that as well.
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’21
Comment on iOS Simulator running metal hangs entire OS when using discrete GPU
I'm running the latest release version of macOS (macOS 11.4 (20F71). Unfortunately, I cannot install beta software on my machine as it's my daily workhorse. I haven't been able to reproduce it yet in a simple test case, I'll try making a test case that more closely resembles the code in our app to see if I can make a reproducer
Topic: Graphics & Games SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jun ’21
Comment on Getting the orientation of the camera relative to the user interface
I'm looking for changes in interface orientation, which is not the same as the device orientation. (e.g. if you have rotation lock enabled the device orientation can change without changing the interface orientation. There are also a few device orientations that do not affect the interface orientation even if it's unlocked, such as .faceUp and .faceDown.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jan ’24
Comment on Getting the orientation of the camera relative to the user interface
This is exactly what I'm looking for, unfortunately it's only available on iOS 17. I need to support iOS 14 and later.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jan ’24