Ryujinx/Ryujinx.Cpu
riperiperi 8d36681bf1
Improve handling for unmapped GPU resources (#2083)
* Improve handling for unmapped GPU resources

- Fixed a memory tracking bug that would set protection on empty PTEs
- When a texture's memory is (partially) unmapped, all pool references are forcibly removed and the texture must be rediscovered to draw with it. This will also force the texture discovery to always compare the texture's range for a match.
- RegionHandles now know if they are unmapped, and automatically unset their dirty flag when unmapped.
- Partial texture sync now loads only the region of texture that has been modified. Unmapped memory tracking handles cause dirty flags for a texture group handle to be ignored.

This greatly improves the emulator's stability for newer UE4 games.

* Address feedback, fix MultiRange slice

Fixed an issue where the size of the multi-range slice would be miscalculated.

* Update Ryujinx.Memory/Range/MultiRange.cs (feedback)

Co-authored-by: Mary <thog@protonmail.com>

Co-authored-by: Mary <thog@protonmail.com>
2021-03-06 11:43:55 -03:00
..
Tracking Improve handling for unmapped GPU resources (#2083) 2021-03-06 11:43:55 -03:00
CpuContext.cs Clear JIT cache on exit (#1518) 2020-12-16 17:07:42 -03:00
InvalidAccessHandler.cs Print guest stack trace on invalid memory access (#1407) 2020-07-30 23:16:41 +10:00
JitMemoryAllocator.cs Implement a new physical memory manager and replace DeviceMemory (#856) 2020-05-04 08:54:50 +10:00
JitMemoryBlock.cs Implement a new physical memory manager and replace DeviceMemory (#856) 2020-05-04 08:54:50 +10:00
MemoryHelper.cs Rewrite size for fixed size buffers (#1808) 2020-12-12 14:06:20 +11:00
MemoryManager.cs Improve handling for unmapped GPU resources (#2083) 2021-03-06 11:43:55 -03:00
Ryujinx.Cpu.csproj infra: Migrate to .NET 5 (#1694) 2020-11-15 19:27:15 +01:00