1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2025-01-03 21:16:01 +00:00
Ryujinx/src/Ryujinx.Graphics.Gpu/Image
MaxLastBreath d86249cb0a
Convert MaxTextureCacheCapacity to Dynamic MaxTextureCacheCapacity for High Resolution Mod support. (#7307)
* Add Texture Size Capacity and 8GB Dram Build

* Update AutoDeleteCache.cs

* Dynamic Texture Cache (WIP)

* Change to float Multiplier, in-case it needs fine-tuning.

* Delete src/src.sln

* Update AutoDeleteCache.cs

* Format

* Fix Formatting

* Add DefaultTextureSizeCapacity and MemoryScaleFactor

- Also remove redundant New Lines

* Fix 4GB dram crashing

* Format newline

* Refractor

- Added Initialize() function to TextureCache and AutoDeleteCache
- Removed GetMaxTextureCapacity() function and instead added _maxCacheMemoryUsage
- Added private const MaxTextureSizeCapacity to AutoDelete Cache
- Added TextureCache.Initialize() to MemoryManager in order to fetch MaxGpuMemory at the right time.
- Moved and Changed Logger.Info for Gpu Memory to Logger.Notice and Moved it to PrintGpuInformation function.
- Opted to use a ternary operator for the Initialize function, I think it looks cleaner than bunch of if statements.

* Update src/Ryujinx.Graphics.Gpu/Image/AutoDeleteCache.cs

Co-authored-by: gdkchan <gab.dark.100@gmail.com>

* maxMemory to CacheMemory, use Clamp instead of Ternary. Changed MinTextureCapacity 1GiB to 512 MiB

* Update src/Ryujinx.Graphics.Gpu/Image/AutoDeleteCache.cs

Co-authored-by: gdkchan <gab.dark.100@gmail.com>

* Format comment

* comment context

* Increase TextureSize capacity for OpenGL back to 1024

- Added a new const ulong for OpenGLTextureSizeCapacity

* Fix changes from last commit.

* Adjust last OpenGL changes.

* Remove garbage VSC file

* Update src/Ryujinx.Graphics.Gpu/Image/AutoDeleteCache.cs

Co-authored-by: gdkchan <gab.dark.100@gmail.com>

* Update src/Ryujinx.Graphics.Gpu/Image/AutoDeleteCache.cs

Co-authored-by: gdkchan <gab.dark.100@gmail.com>

* Update src/Ryujinx.Graphics.Gpu/Image/AutoDeleteCache.cs

Co-authored-by: gdkchan <gab.dark.100@gmail.com>

---------

Co-authored-by: gdkchan <gab.dark.100@gmail.com>
2024-09-26 14:33:38 -03:00
..
AutoDeleteCache.cs Convert MaxTextureCacheCapacity to Dynamic MaxTextureCacheCapacity for High Resolution Mod support. (#7307) 2024-09-26 14:33:38 -03:00
FormatInfo.cs Change image format view handling to allow view incompatible formats (#7311) 2024-09-17 15:52:30 -03:00
FormatTable.cs Change packed aliasing formats to UInt (#6358) 2024-02-24 19:02:20 -03:00
ITextureDescriptor.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
Pool.cs Add support for large sampler arrays on Vulkan (#6489) 2024-04-07 18:25:55 -03:00
PoolCache.cs Add support for bindless textures from shader input (vertex buffer) on Vulkan (#6577) 2024-04-22 15:05:55 -03:00
ReductionFilter.cs [Ryujinx.Graphics.Gpu] Address dotnet-format issues (#5367) 2023-07-02 02:47:54 +02:00
Sampler.cs Add support for sampler sRGB disable (#7312) 2024-09-19 14:38:30 -03:00
SamplerDescriptor.cs Add support for sampler sRGB disable (#7312) 2024-09-19 14:38:30 -03:00
SamplerMinFilter.cs [Ryujinx.Graphics.Gpu] Address dotnet-format issues (#5367) 2023-07-02 02:47:54 +02:00
SamplerMipFilter.cs [Ryujinx.Graphics.Gpu] Address dotnet-format issues (#5367) 2023-07-02 02:47:54 +02:00
SamplerPool.cs [Ryujinx.Graphics.Gpu] Address dotnet-format issues (#5367) 2023-07-02 02:47:54 +02:00
SamplerPoolCache.cs [Ryujinx.Graphics.Gpu] Address dotnet-format issues (#5367) 2023-07-02 02:47:54 +02:00
Texture.cs Replace passing by IMemoryOwner<byte> with passing by concrete MemoryOwner<byte> (#7171) 2024-09-18 23:00:54 -03:00
TextureBindingInfo.cs Change image format view handling to allow view incompatible formats (#7311) 2024-09-17 15:52:30 -03:00
TextureBindingsArrayCache.cs Change image format view handling to allow view incompatible formats (#7311) 2024-09-17 15:52:30 -03:00
TextureBindingsManager.cs Add support for sampler sRGB disable (#7312) 2024-09-19 14:38:30 -03:00
TextureCache.cs Convert MaxTextureCacheCapacity to Dynamic MaxTextureCacheCapacity for High Resolution Mod support. (#7307) 2024-09-26 14:33:38 -03:00
TextureCompatibility.cs Change image format view handling to allow view incompatible formats (#7311) 2024-09-17 15:52:30 -03:00
TextureComponent.cs [Ryujinx.Graphics.Gpu] Address dotnet-format issues (#5367) 2023-07-02 02:47:54 +02:00
TextureDependency.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
TextureDescriptor.cs [Ryujinx.Graphics.Gpu] Address dotnet-format issues (#5367) 2023-07-02 02:47:54 +02:00
TextureDescriptorType.cs [Ryujinx.Graphics.Gpu] Address dotnet-format issues (#5367) 2023-07-02 02:47:54 +02:00
TextureGroup.cs Replace passing by IMemoryOwner<byte> with passing by concrete MemoryOwner<byte> (#7171) 2024-09-18 23:00:54 -03:00
TextureGroupHandle.cs Make TextureGroup.ClearModified thread safe (#6686) 2024-05-14 17:06:36 +02:00
TextureInfo.cs [Ryujinx.Graphics.Gpu] Address dotnet-format issues (#5367) 2023-07-02 02:47:54 +02:00
TextureManager.cs Add support for bindless textures from shader input (vertex buffer) on Vulkan (#6577) 2024-04-22 15:05:55 -03:00
TextureMatchQuality.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
TextureMsaaMode.cs [Ryujinx.Graphics.Gpu] Address dotnet-format issues (#5367) 2023-07-02 02:47:54 +02:00
TexturePool.cs Add support for sampler sRGB disable (#7312) 2024-09-19 14:38:30 -03:00
TexturePoolCache.cs [Ryujinx.Graphics.Gpu] Address dotnet-format issues (#5367) 2023-07-02 02:47:54 +02:00
TextureScaleMode.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
TextureSearchFlags.cs GPU: Discard data when getting texture before full clear (#5719) 2023-09-25 23:07:03 +02:00
TextureTarget.cs [Ryujinx.Graphics.Gpu] Address dotnet-format issues (#5367) 2023-07-02 02:47:54 +02:00
TextureViewCompatibility.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00