diff options
| author | Zephyron <zephyron@citron-emu.org> | 2025-01-06 12:41:42 +1000 |
|---|---|---|
| committer | Mike Lothian <mike@fireburn.co.uk> | 2025-05-11 12:17:03 +0100 |
| commit | 78067cf62f85eb47804d1eaeaea4986634e3eb7b (patch) | |
| tree | e4e53c7c095d7b334b6ba06092c3bdf042dd2dac /src/video_core/buffer_cache/buffer_cache.cpp | |
| parent | f1afe954ecda0e34d166a54d80255f130f01c653 (diff) | |
common: Use consistent cache line size in RingBuffer
Replace hardcoded 128-byte alignment with a defined CACHE_LINE_SIZE constant
of 64 bytes for the atomic indices in RingBuffer. This value is more
appropriate for most modern CPU architectures and simplifies the
implementation by using a consistent value regardless of compiler support
for hardware_interference_size.
Changes:
- Add CACHE_LINE_SIZE constant set to 64 bytes
- Use CACHE_LINE_SIZE for atomic index alignment in both code paths
- Remove outdated TODO comment about hardware_destructive_interference_size
Diffstat (limited to 'src/video_core/buffer_cache/buffer_cache.cpp')
0 files changed, 0 insertions, 0 deletions
