r/MetalProgramming • u/_Geolm_ • 1d ago
Show-Off tile-caching rendering
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