I've identified a few things that could help improve the performance of the library. Currently, there's a bit of lag in the SwiftUI demo view when moving the noise property sliders around and using a large texture size.
Benchmarks
Storage Modes
See https://developer.apple.com/documentation/metal/setting_resource_storage_modes for storage mode information.
Shader Optimizations
Thread Groups
Asynchronous Command Buffer
Miscellaneous Performance Links
I've identified a few things that could help improve the performance of the library. Currently, there's a bit of lag in the SwiftUI demo view when moving the noise property sliders around and using a large texture size.
Benchmarks
Storage Modes
See https://developer.apple.com/documentation/metal/setting_resource_storage_modes for storage mode information.
Shader Optimizations
time spent - %for each statement in the shader codeThread Groups
Asynchronous Command Buffer
Miscellaneous Performance Links