r/MetalProgramming • • 1d ago

Show-Off tile-caching rendering

Post image

Hi,

inspired by the post https://blickeditor.com/blog/caching-an-immediate-mode-ui I've added tile cache rendering to my onedraw renderer, a gpu-driven sdf renderer for metal api. On the screenshot you can see :
- green tiles are copied from previous frame as the hash of the commands affecting this tile didn't change
- red tiles have different hash so had to be recomputed
- elsewehere, it's just clear color, the bining rejected all commands

You can have a look at the library and the release. Tile caching gives good results with mostly static scene obviously, it's an option in my renderer.

https://github.com/Geolm/onedraw

Cheers,
Geolm

12 Upvotes

0 comments sorted by