Search Unity

Vulkan_pso_cache.bin - what is it, how do we version it?

Discussion in 'General Discussion' started by aaronflippo, Oct 22, 2018.

  1. aaronflippo

    aaronflippo

    Joined:
    Jun 7, 2012
    Posts:
    45
    We've been banging our heads against our desks for the last week or two, trying to figure out why our Vulkan builds on Android have glitches that seem random. We'll observe a glitch in a build (missing meshes, random black flickering, etc.) and then make another build without changing settings, and things will work again. This morning we realized that deleting the app and doing a fresh install seemed to result in slightly different results.

    Then we noticed that the game is saving a file called vulkan_pso_cache.bin. Deleting this file (or turning off Android's cloud sync feature that saves/restores files on google drive) seems to change the nature of the glitches we're seeing.
    So my questions are:
    - What is this file
    - How does Unity decide when to replace/recreate it? For instance, if we change a material and make a new build, would that result in an updated cache?
    - Is there a way to turn this off for development, or somehow control the versioning of it to force updates for existing installations?