gfx-rs/gfx

New Metal pipeline cache doesn't work properly on Dota2 + portability

kvark opened this issue · 2 comments

kvark commented

We appear to be constantly recompiling shaders, and we spending all the time in get_pipeline_cache_data (the serializing part).
Related to #3719 cc @expenses

We can definitely speed up the serializing path, but I'm pretty sure that the pipeline cache should be working. How do shader compilation times compare against no pipeline cache? Could it be that the output shaders vary slightly on each compilation, resulting in cache misses and a bloated cache?

kvark commented

Sorry for idling, I'll get back to this.