mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-10-14 07:00:40 -04:00
dc27252352
Implement a generic shader cache for fast lookups and invalidations. Invalidations are cheap but expensive when a shader is invalidated. Use two mutexes instead of one to avoid locking invalidations for lookups and vice versa. When a shader has to be removed, lookups are locked as expected.