Shader::BinaryCacheStats
struct · #include <rayrai/shaders/Shader.hpp>
Counters reported by Shader::binaryCacheStats().
Process-global, accumulated across every Shader::compile call since program start (or the last resetBinaryCacheStats()).
Public attributes
hits
cpp
uint64_t hitsPrograms successfully loaded from the persisted cache.
misses
cpp
uint64_t missesPrograms not in the cache (or load rejected) that fell back to full compile.
stores
cpp
uint64_t storesPrograms that, after compile, wrote a fresh binary back to the cache.
coordinatedWaits
cpp
uint64_t coordinatedWaitsThreads that blocked waiting for another thread's in-progress compile, then loaded that thread's freshly-written binary instead of recompiling. In multi-context RL setups this should approximate worker_thread_count - 1 per shader after warmup.