eden-miror/src/video_core/buffer_cache
lizzie 77decca678
Some checks are pending
tx-src / sources (push) Waiting to run
Check Strings / check-strings (push) Waiting to run
[video_core/engines/maxwell3d] memory inline DrawState to reduce indirection on hot paths (#3758)
usual indirection removal
helps very slightly to codegen

the idea is basically to reduce the amount of pointer deference overall in the code, and use idiomatic std::variant<>-isms to not rely on vtables/unique_ptr overhead
this should allow the compiler to emit better code
of course it's a tiny optimisation and only CPU side, but allows us to reduce indirection which is almost always a good thing

"but youre passing more parameters to the function!!!" its literally memoized into a register my friend

Signed-off-by: lizzie <lizzie@eden-emu.dev>
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3758
Reviewed-by: crueter <crueter@eden-emu.dev>
Reviewed-by: MaranBr <maranbr@eden-emu.dev>
2026-04-28 17:44:51 +02:00
..
buffer_base.h [texture_cache, buffer_cache] Added TLS handling + changed command queue for GPU threading. (#3579) 2026-02-20 00:52:07 +01:00
buffer_cache.cpp [meta] remove MicroProfile (#185) 2025-08-06 07:48:11 +02:00
buffer_cache.h [video_core/engines/maxwell3d] memory inline DrawState to reduce indirection on hot paths (#3758) 2026-04-28 17:44:51 +02:00
buffer_cache_base.h [video_core/engines/maxwell3d] memory inline DrawState to reduce indirection on hot paths (#3758) 2026-04-28 17:44:51 +02:00
memory_tracker_base.h [*] change all std::unordered_map and std::unordered_set into ankerl::unordered_dense::map/set variants (#3442) 2026-02-10 03:34:07 +01:00
usage_tracker.h buffer_cache: avoid overflow in usage tracker (#13166) 2024-02-27 15:39:11 +01:00
word_manager.h [video_core/buffer_cache] Simplify word manager logic (#3221) 2026-02-01 01:55:47 +01:00