Hi,
I am trying to learn the chromium code that relates to shader caching.
I have done a test to see the actual results that should come when shaders are cached (e.g lower time to compile and link the program).
The test compile and links 40 different programs. The first time I ran it I saw it took ~200ms for each program to link, and in other times I ran it on the same chrome instance , it took ~5ms. so far so good.
But when I closed the chrome instance, opened it again and ran my test again, it took (again) ~200ms, as if the shaders weren't cached in disk.
Why does it happen? I couldn't see any policy that is implemented in shader_disk_cache or in program_cache_manager that could cause it to not be cached on disk.
Another unexpected result I got was that when I ran chrome with flag --disable-gpu-program-cache, and ran the test twice, the second time the programs still linked very fast (~5ms) as if they were cached in memory. (I saw in code that when this flag is supplied the MemoryProgramCache doesn't get created so its weird that it happens).
Sure there must be something wrong on how I understood the code maybe or something else so I would really appreciate if someone can help me out (maybe point me to places where I can read more about the shader caching).
I will note that I run all my tests on windows 10, 64 bit.
Not sure this is the right place to ask for help in troubleshooting like this, so if not maybe you can point me out to a place where I could get help?
Thanks a lot, Roy