Explore hybrid rendering with Metal ray tracing

RSS for tag

Discuss the WWDC21 session Explore hybrid rendering with Metal ray tracing.

Posts under wwdc21-10150 tag

2 Posts

Post

Replies

Boosts

Views

Activity

WWDC21 ray tracing sample GPU hangs
I updated my MBP 16" into macOS 12 beta and downloaded Xcode 13 & hybrid rendering sample. (https://developer.apple.com/documentation/metal/rendering_reflections_in_real_time_using_ray-tracing?language=objc) I run the sample but Xcode tells me GPU timeout has been occurred. 2021-06-10 01:50:53.303115+0900 HybridRendering[2259:105212] Execution of the command buffer was aborted due to an error during execution. Caused GPU Timeout Error (00000002:kIOAccelCommandBufferCallbackErrorTimeout) 2021-06-10 01:50:53.303324+0900 HybridRendering[2259:105212] Execution of the command buffer was aborted due to an error during execution. Caused GPU Timeout Error (00000002:kIOAccelCommandBufferCallbackErrorTimeout) Error Domain=MTLCommandBufferErrorDomain Code=2 "Caused GPU Timeout Error (00000002:kIOAccelCommandBufferCallbackErrorTimeout)" UserInfo={NSLocalizedDescription=Caused GPU Timeout Error (00000002:kIOAccelCommandBufferCallbackErrorTimeout), MTLCommandBufferEncoderInfoErrorKey=( "<errorState: MTLCommandEncoderErrorStateCompleted, label: ThinGBufferRenderEncoder, debugSignposts: (null)>", "<errorState: MTLCommandEncoderErrorStateAffected, label: RaytracedReflectionsComputeEncoder, debugSignposts: (null)>", "<errorState: MTLCommandEncoderErrorStateAffected, label: (null), debugSignposts: (null)>", "<errorState: MTLCommandEncoderErrorStatePending, label: ForwardPassRenderEncoder, debugSignposts: (null)>" )} It seems the intersection code in AAPLShaders.metal occurs the timeout error... ... auto intersection = inter.intersect( r, accelerationStructure, 0xFF ); ... I have troubles on Radeon Pro 5500M however Intel GPU and M1 MacBook Air doesn't. Is there any workarounds to run on Radeon? Thanks!
3
0
1.4k
Sep ’21
Hybrid rendering recommended for iOS?
I want to include hybrid rendering for shadows, but im afraid iOS devices can handle the workload. They didn't mention anything on the video about iOS performance
Replies
1
Boosts
0
Views
1.2k
Activity
Nov ’21
WWDC21 ray tracing sample GPU hangs
I updated my MBP 16" into macOS 12 beta and downloaded Xcode 13 & hybrid rendering sample. (https://developer.apple.com/documentation/metal/rendering_reflections_in_real_time_using_ray-tracing?language=objc) I run the sample but Xcode tells me GPU timeout has been occurred. 2021-06-10 01:50:53.303115+0900 HybridRendering[2259:105212] Execution of the command buffer was aborted due to an error during execution. Caused GPU Timeout Error (00000002:kIOAccelCommandBufferCallbackErrorTimeout) 2021-06-10 01:50:53.303324+0900 HybridRendering[2259:105212] Execution of the command buffer was aborted due to an error during execution. Caused GPU Timeout Error (00000002:kIOAccelCommandBufferCallbackErrorTimeout) Error Domain=MTLCommandBufferErrorDomain Code=2 "Caused GPU Timeout Error (00000002:kIOAccelCommandBufferCallbackErrorTimeout)" UserInfo={NSLocalizedDescription=Caused GPU Timeout Error (00000002:kIOAccelCommandBufferCallbackErrorTimeout), MTLCommandBufferEncoderInfoErrorKey=( "<errorState: MTLCommandEncoderErrorStateCompleted, label: ThinGBufferRenderEncoder, debugSignposts: (null)>", "<errorState: MTLCommandEncoderErrorStateAffected, label: RaytracedReflectionsComputeEncoder, debugSignposts: (null)>", "<errorState: MTLCommandEncoderErrorStateAffected, label: (null), debugSignposts: (null)>", "<errorState: MTLCommandEncoderErrorStatePending, label: ForwardPassRenderEncoder, debugSignposts: (null)>" )} It seems the intersection code in AAPLShaders.metal occurs the timeout error... ... auto intersection = inter.intersect( r, accelerationStructure, 0xFF ); ... I have troubles on Radeon Pro 5500M however Intel GPU and M1 MacBook Air doesn't. Is there any workarounds to run on Radeon? Thanks!
Replies
3
Boosts
0
Views
1.4k
Activity
Sep ’21