mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-01-31 01:15:24 +01:00
VIF: Reduce alignment of empty hash buckets
They'll never be in hot codepaths (since they're empty) and memalign with 64-byte alignment is noticeably slower than 16-byte alignment
This commit is contained in:
committed by
refractionpcsx2
parent
ee451fe345
commit
314c840293
@@ -137,7 +137,7 @@ public:
|
||||
// Allocate an empty cell for all buckets
|
||||
for (auto& bucket : m_bucket)
|
||||
{
|
||||
if ((bucket = (nVifBlock*)_aligned_malloc(sizeof(nVifBlock), 64)) == nullptr)
|
||||
if ((bucket = (nVifBlock*)_aligned_malloc(sizeof(nVifBlock), 16)) == nullptr)
|
||||
{
|
||||
pxFailRel("Failed to allocate HashBucket Chain on reset");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user