Ryujinx/Ryujinx.Graphics.Gpu
riperiperi bdc1f91a5b
Remove pool cache entries for incompatible overlapping textures (#2568)
This greatly reduces memory usage in games that aggressively reuse memory without removing dead textures from the pool, such as the Xenoblade games, UE3 games, and to a lesser extent, UE4/unity games.

This change stops memory usage from ballooning in xenoblade and some other games. It will also reduce texture view/dependency complexity in some games - for example in MK8D it will reduce the number of surface copies between lighting cubemaps generated for actors.

There shouldn't be any performance impact from doing this, though the deletion and creation of textures could be improved by improving the OpenGL texture storage cache, which is very simple and limited right now. This will be improved in future.

Another potential error has been fixed with the texture cache, which could prevent data loss when data is interchangably written to textures from both the GPU and CPU. It was possible that the dirty flag for a texture would be consumed without the data being synchronized on next use, due to the old overlap check. This check no longer consumes the dirty flag.

Please test a bunch of games to make sure they still work, and there are no performance regressions.
2021-08-20 17:52:09 -03:00
..
Engine Revert "Calculate vertex buffer sizes from index buffer (#1663)" (#2544) 2021-08-11 22:13:48 -03:00
Image Remove pool cache entries for incompatible overlapping textures (#2568) 2021-08-20 17:52:09 -03:00
Memory Enable transform feedback buffer flush (#2552) 2021-08-17 14:09:27 -03:00
Shader Fix size of cached compute shaders (#2548) 2021-08-12 15:59:24 -03:00
Synchronization Improved Logger (#1292) 2020-08-04 01:32:53 +02:00
ClassId.cs Separate GPU engines (part 2/2) (#2440) 2021-07-11 17:20:40 -03:00
Constants.cs Improve linear texture compatibility rules (#2099) 2021-03-19 02:17:38 +01:00
GpuChannel.cs Separate GPU engines (part 2/2) (#2440) 2021-07-11 17:20:40 -03:00
GpuContext.cs Separate GPU engines (part 2/2) (#2440) 2021-07-11 17:20:40 -03:00
GraphicsConfig.cs Revert "Calculate vertex buffer sizes from index buffer (#1663)" (#2544) 2021-08-11 22:13:48 -03:00
Ryujinx.Graphics.Gpu.csproj infra: Migrate to .NET 5 (#1694) 2020-11-15 19:27:15 +01:00
Window.cs Initial support for separate GPU address spaces (#2394) 2021-06-29 19:32:02 +02:00