bdc1f91a5b
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. |
||
---|---|---|
.. | ||
AutoDeleteCache.cs | ||
FormatInfo.cs | ||
FormatTable.cs | ||
ITextureDescriptor.cs | ||
Pool.cs | ||
ReductionFilter.cs | ||
Sampler.cs | ||
SamplerDescriptor.cs | ||
SamplerMinFilter.cs | ||
SamplerMipFilter.cs | ||
SamplerPool.cs | ||
Texture.cs | ||
TextureBindingInfo.cs | ||
TextureBindingsManager.cs | ||
TextureCache.cs | ||
TextureCompatibility.cs | ||
TextureComponent.cs | ||
TextureDependency.cs | ||
TextureDescriptor.cs | ||
TextureDescriptorType.cs | ||
TextureGroup.cs | ||
TextureGroupHandle.cs | ||
TextureInfo.cs | ||
TextureManager.cs | ||
TextureMatchQuality.cs | ||
TextureMsaaMode.cs | ||
TexturePool.cs | ||
TexturePoolCache.cs | ||
TextureScaleMode.cs | ||
TextureSearchFlags.cs | ||
TextureTarget.cs | ||
TextureViewCompatibility.cs |