mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-06-28 11:26:24 +02:00
feat: avoid filling pages when using private allocations
This commit is contained in:
parent
e9ab106f8f
commit
6334c3f90c
1 changed files with 2 additions and 2 deletions
|
@ -119,7 +119,7 @@ namespace Ryujinx.HLE.HOS.Kernel.Memory
|
||||||
Context.MemoryManager.IncrementPagesReferenceCount(srcPa, pagesCount);
|
Context.MemoryManager.IncrementPagesReferenceCount(srcPa, pagesCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (shouldFillPages)
|
if (shouldFillPages && (Supports4KBPages || !flags.HasFlag(MemoryMapFlags.Private) || fillValue != 0))
|
||||||
{
|
{
|
||||||
_cpuMemory.Fill(dstVa, size, fillValue);
|
_cpuMemory.Fill(dstVa, size, fillValue);
|
||||||
}
|
}
|
||||||
|
@ -149,7 +149,7 @@ namespace Ryujinx.HLE.HOS.Kernel.Memory
|
||||||
|
|
||||||
_cpuMemory.Map(currentVa, addr, size, flags);
|
_cpuMemory.Map(currentVa, addr, size, flags);
|
||||||
|
|
||||||
if (shouldFillPages)
|
if (shouldFillPages && (Supports4KBPages || !flags.HasFlag(MemoryMapFlags.Private) || fillValue != 0))
|
||||||
{
|
{
|
||||||
_cpuMemory.Fill(currentVa, size, fillValue);
|
_cpuMemory.Fill(currentVa, size, fillValue);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue