Skip to content

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 hits

Programs successfully loaded from the persisted cache.

misses ​

cpp
uint64_t misses

Programs not in the cache (or load rejected) that fell back to full compile.

stores ​

cpp
uint64_t stores

Programs that, after compile, wrote a fresh binary back to the cache.

coordinatedWaits ​

cpp
uint64_t coordinatedWaits

Threads 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.

RaiSim — physics for robotics and AI.