0
0
Fork 0
mirror of https://github.com/ryujinx-mirror/ryujinx.git synced 2024-10-18 14:21:40 +00:00
ryujinx-fork/src/Ryujinx.Graphics.OpenGL
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
..
Effects Add area sampling scaler to allow for super-sampled anti-aliasing. (#7304) 2024-09-17 15:30:50 -03:00
Helper editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
Image Replace passing by IMemoryOwner<byte> with passing by concrete MemoryOwner<byte> (#7171) 2024-09-18 23:00:54 -03:00
Queries editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
BackgroundContextWorker.cs Make IOpenGLContext.HasContext context dependent (#6290) 2024-02-10 20:13:10 +01:00
Buffer.cs GPU: Pre-emptively flush textures that are flushed often (to imported memory when available) (#4711) 2023-05-01 16:05:12 -03:00
Constants.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
Debugger.cs [Ryujinx.Graphics.OpenGL] Address dotnet-format issues (#5372) 2023-06-28 18:10:55 +02:00
DrawTextureEmulation.cs [Ryujinx.Graphics.OpenGL] Address dotnet-format issues (#5372) 2023-06-28 18:10:55 +02:00
EnumConversion.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
FormatInfo.cs [Ryujinx.Graphics.OpenGL] Address dotnet-format issues (#5372) 2023-06-28 18:10:55 +02:00
FormatTable.cs Implement X8Z24 texture format (#6315) 2024-02-15 19:06:26 -03:00
Framebuffer.cs Implement X8Z24 texture format (#6315) 2024-02-15 19:06:26 -03:00
Handle.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
HwCapabilities.cs Geometry shader emulation for macOS (#5551) 2023-08-29 21:10:34 -03:00
IOpenGLContext.cs Make IOpenGLContext.HasContext context dependent (#6290) 2024-02-10 20:13:10 +01:00
OpenGLRenderer.cs Convert MaxTextureCacheCapacity to Dynamic MaxTextureCacheCapacity for High Resolution Mod support. (#7307) 2024-09-26 14:33:38 -03:00
PersistentBuffers.cs [Ryujinx.Graphics.OpenGL] Address dotnet-format issues (#5372) 2023-06-28 18:10:55 +02:00
Pipeline.cs Change image format view handling to allow view incompatible formats (#7311) 2024-09-17 15:52:30 -03:00
Program.cs OpenGL: Mask out all color outputs with no fragment shader (#6341) 2024-02-22 18:43:19 +01:00
ResourcePool.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
Ryujinx.Graphics.OpenGL.csproj Add area sampling scaler to allow for super-sampled anti-aliasing. (#7304) 2024-09-17 15:30:50 -03:00
Sync.cs editorconfig: Set default encoding to UTF-8 (#5793) 2023-12-04 14:17:13 +01:00
VertexArray.cs [Ryujinx.Graphics.OpenGL] Address dotnet-format issues (#5372) 2023-06-28 18:10:55 +02:00
Window.cs Add area sampling scaler to allow for super-sampled anti-aliasing. (#7304) 2024-09-17 15:30:50 -03:00