From ea3d5fde7329e5fede58e216f8c1dc045b504029 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sun, 3 May 2020 18:07:42 -0300 Subject: [PATCH] Remove buffer invalidation (#1194) --- Ryujinx.Graphics.Gpu/Memory/Buffer.cs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Ryujinx.Graphics.Gpu/Memory/Buffer.cs b/Ryujinx.Graphics.Gpu/Memory/Buffer.cs index a0339cce..e4bc161f 100644 --- a/Ryujinx.Graphics.Gpu/Memory/Buffer.cs +++ b/Ryujinx.Graphics.Gpu/Memory/Buffer.cs @@ -47,8 +47,6 @@ namespace Ryujinx.Graphics.Gpu.Memory HostBuffer = context.Renderer.CreateBuffer((int)size); _sequenceNumbers = new int[size / MemoryManager.PageSize]; - - Invalidate(); } /// @@ -152,14 +150,6 @@ namespace Ryujinx.Graphics.Gpu.Memory _context.PhysicalMemory.Write(address, data); } - /// - /// Invalidates all the buffer data, causing it to be read from guest memory. - /// - public void Invalidate() - { - HostBuffer.SetData(0, _context.PhysicalMemory.GetSpan(Address, Size)); - } - /// /// Disposes the host buffer. ///