mirror of
https://github.com/skyline-emu/skyline.git
synced 2025-03-29 03:08:59 +03:00
Constant buffer updates result in a barrage of std::mutex calls that take a lot of time even under no contention (around 5%). Using a custom spinlock in cases like these allows inlining locking code reducing the cost of locks under no contention to almost 0.