diff options
| author | Ryan Houdek <Sonicadvance1@gmail.com> | 2014-12-20 23:21:24 -0600 |
|---|---|---|
| committer | Ryan Houdek <Sonicadvance1@gmail.com> | 2014-12-20 23:21:24 -0600 |
| commit | 59e1a8a1a00ce900b16c6dfa1d5f58db8377d905 (patch) | |
| tree | 94830d675eb8579004f33e6cb4e15810c52f97a7 /Source/Core/VideoBackends/D3D/Render.cpp | |
| parent | f4ab1443fa5c9d0eedb5edc4c33e7da2bea56835 (diff) | |
| parent | 3f9b52e555b860247cccfd21814a6ad7e8df4df8 (diff) | |
Merge pull request #1736 from degasus/osd
OSD
Diffstat (limited to 'Source/Core/VideoBackends/D3D/Render.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/D3D/Render.cpp | 49 |
1 files changed, 1 insertions, 48 deletions
diff --git a/Source/Core/VideoBackends/D3D/Render.cpp b/Source/Core/VideoBackends/D3D/Render.cpp index 9609fbf722..84b83ef1f0 100644 --- a/Source/Core/VideoBackends/D3D/Render.cpp +++ b/Source/Core/VideoBackends/D3D/Render.cpp @@ -8,13 +8,11 @@ #include <strsafe.h> #include <unordered_map> -#include "Common/Profiler.h" #include "Common/Timer.h" #include "Core/ConfigManager.h" #include "Core/Core.h" #include "Core/Host.h" -#include "Core/Movie.h" #include "VideoBackends/D3D/BoundingBox.h" #include "VideoBackends/D3D/D3DBase.h" @@ -277,6 +275,7 @@ Renderer::~Renderer() void Renderer::RenderText(const std::string& text, int left, int top, u32 color) { + D3D::font.DrawTextScaled((float)(left+1), (float)(top+1), 20.f, 0.0f, color & 0xFF000000, text); D3D::font.DrawTextScaled((float)left, (float)top, 20.f, 0.0f, color, text); } @@ -914,54 +913,8 @@ void Renderer::SwapImpl(u32 xfbAddr, u32 fbWidth, u32 fbStride, u32 fbHeight, co vp = CD3D11_VIEWPORT(0.0f, 0.0f, (float)GetBackbufferWidth(), (float)GetBackbufferHeight()); D3D::context->RSSetViewports(1, &vp); - // Finish up the current frame, print some stats - if (g_ActiveConfig.bShowFPS || SConfig::GetInstance().m_ShowFrameCount) - { - std::string fps = ""; - if (g_ActiveConfig.bShowFPS) - fps = StringFromFormat("FPS: %d", m_fps_counter.m_fps); - - if (g_ActiveConfig.bShowFPS && SConfig::GetInstance().m_ShowFrameCount) - fps += " - "; - if (SConfig::GetInstance().m_ShowFrameCount) - { - fps += StringFromFormat("Frame: %d", Movie::g_currentFrame); - if (Movie::IsPlayingInput()) - fps += StringFromFormat(" / %d", Movie::g_totalFrames); - } - - fps += "\n"; - - D3D::font.DrawTextScaled(0, 0, 20, 0.0f, 0xFF00FFFF, fps); - } - - if (SConfig::GetInstance().m_ShowLag) - { - std::string lag = StringFromFormat("Lag: %" PRIu64 "\n", Movie::g_currentLagCount); - D3D::font.DrawTextScaled(0, 18, 20, 0.0f, 0xFF00FFFF, lag); - } - - if (SConfig::GetInstance().m_ShowInputDisplay) - { - D3D::font.DrawTextScaled(0, 36, 20, 0.0f, 0xFF00FFFF, Movie::GetInputDisplay()); - } Renderer::DrawDebugText(); - if (g_ActiveConfig.bOverlayStats) - { - D3D::font.DrawTextScaled(0, 36, 20, 0.0f, 0xFF00FFFF, Statistics::ToString()); - } - else if (g_ActiveConfig.bOverlayProjStats) - { - D3D::font.DrawTextScaled(0, 36, 20, 0.0f, 0xFF00FFFF, Statistics::ToStringProj()); - } - - std::string profile_output = Profiler::ToString(); - if (!profile_output.empty()) - { - D3D::font.DrawTextScaled(0, 44, 20, 0.0f, 0xFF00FFFF, profile_output); - } - OSD::DrawMessages(); D3D::EndFrame(); |
