summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon
diff options
context:
space:
mode:
authorDentomologist <dentomologist@gmail.com>2024-09-05 13:12:24 -0700
committerDentomologist <dentomologist@gmail.com>2024-09-06 13:00:25 -0700
commitc3d6d2189a63f93db2ed2e8879f6f101e2e388fe (patch)
treeace6ff7c0afa84903a0b3fa8e63208b2b0f7beb0 /Source/Core/VideoCommon
parentefc395f7f424f71f4f6ccd055a1dd5817ad8fbc8 (diff)
Texture Dumping: Show OSD message on startup and when toggled
If texture dumping is enabled, notify the user on emulation startup using an On Screen Display message. Also notify the user when texture dumping is toggled. Addresses https://bugs.dolphin-emu.org/issues/12445.
Diffstat (limited to 'Source/Core/VideoCommon')
-rw-r--r--Source/Core/VideoCommon/VideoBackendBase.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/VideoBackendBase.cpp b/Source/Core/VideoCommon/VideoBackendBase.cpp
index a5d309cc96..1db7fb2ab6 100644
--- a/Source/Core/VideoCommon/VideoBackendBase.cpp
+++ b/Source/Core/VideoCommon/VideoBackendBase.cpp
@@ -52,6 +52,7 @@
#include "VideoCommon/GeometryShaderManager.h"
#include "VideoCommon/GraphicsModSystem/Runtime/GraphicsModManager.h"
#include "VideoCommon/IndexGenerator.h"
+#include "VideoCommon/OnScreenDisplay.h"
#include "VideoCommon/OpcodeDecoding.h"
#include "VideoCommon/PixelEngine.h"
#include "VideoCommon/PixelShaderManager.h"
@@ -392,6 +393,12 @@ bool VideoBackendBase::InitializeShared(std::unique_ptr<AbstractGfx> gfx,
g_Config.VerifyValidity();
UpdateActiveConfig();
+ if (g_Config.bDumpTextures)
+ {
+ OSD::AddMessage(fmt::format("Texture Dumping is enabled. This will reduce performance."),
+ OSD::Duration::NORMAL);
+ }
+
g_shader_cache->InitializeShaderCache();
return true;