From e7559f128f99058774a8d53aa45213b51c085e76 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sat, 23 Jun 2018 21:39:25 -0300 Subject: Small OpenGL Renderer refactoring (#177) * Call OpenGL functions directly, remove the pfifo thread, some refactoring * Fix PerformanceStatistics calculating the wrong host fps, remove wait event on PFIFO as this wasn't exactly was causing the freezes (may replace with an exception later) * Organized the Gpu folder a bit more, renamed a few things, address PR feedback * Make PerformanceStatistics thread safe * Remove unused constant * Use unlimited update rate for better pref --- Ryujinx.HLE/Gpu/Exceptions/GpuException.cs | 11 +++++++++++ Ryujinx.HLE/Gpu/Exceptions/GpuExceptionHelper.cs | 12 ++++++++++++ 2 files changed, 23 insertions(+) create mode 100644 Ryujinx.HLE/Gpu/Exceptions/GpuException.cs create mode 100644 Ryujinx.HLE/Gpu/Exceptions/GpuExceptionHelper.cs (limited to 'Ryujinx.HLE/Gpu/Exceptions') diff --git a/Ryujinx.HLE/Gpu/Exceptions/GpuException.cs b/Ryujinx.HLE/Gpu/Exceptions/GpuException.cs new file mode 100644 index 00000000..c0bce5a5 --- /dev/null +++ b/Ryujinx.HLE/Gpu/Exceptions/GpuException.cs @@ -0,0 +1,11 @@ +using System; + +namespace Ryujinx.HLE.Gpu.Exceptions +{ + class GpuException : Exception + { + public GpuException() : base() { } + + public GpuException(string ExMsg) : base(ExMsg) { } + } +} \ No newline at end of file diff --git a/Ryujinx.HLE/Gpu/Exceptions/GpuExceptionHelper.cs b/Ryujinx.HLE/Gpu/Exceptions/GpuExceptionHelper.cs new file mode 100644 index 00000000..aeab9a29 --- /dev/null +++ b/Ryujinx.HLE/Gpu/Exceptions/GpuExceptionHelper.cs @@ -0,0 +1,12 @@ +namespace Ryujinx.HLE.Gpu.Exceptions +{ + static class GpuExceptionHelper + { + private const string CallCountExceeded = "Method call count exceeded the limit allowed per run!"; + + public static void ThrowCallCoundExceeded() + { + throw new GpuException(CallCountExceeded); + } + } +} \ No newline at end of file -- cgit v1.2.3