diff options
| author | iwubcode <iwubcode@users.noreply.github.com> | 2020-06-17 15:06:40 -0500 |
|---|---|---|
| committer | iwubcode <iwubcode@users.noreply.github.com> | 2020-07-02 12:55:08 -0500 |
| commit | 0441d6aa5eb2d1ac45f1f1973fa5ad3adaf71f08 (patch) | |
| tree | c7b5eb557c30e8f809485070d501a66d4f5d3007 /Source/Core/VideoCommon/RenderBase.cpp | |
| parent | d6341c4117d59565b3bc42264d6fa5ba7e796526 (diff) | |
VertexShaderManager: Avoid accessing freelook control type configuration each call which caused a performance hit, move check to RenderBase where it is checked when config changes
Diffstat (limited to 'Source/Core/VideoCommon/RenderBase.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/RenderBase.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/Core/VideoCommon/RenderBase.cpp b/Source/Core/VideoCommon/RenderBase.cpp index f3aa366af7..b2e7015ca6 100644 --- a/Source/Core/VideoCommon/RenderBase.cpp +++ b/Source/Core/VideoCommon/RenderBase.cpp @@ -63,6 +63,7 @@ #include "VideoCommon/FrameDump.h" #include "VideoCommon/FramebufferManager.h" #include "VideoCommon/FramebufferShaderGen.h" +#include "VideoCommon/FreeLookCamera.h" #include "VideoCommon/ImageWrite.h" #include "VideoCommon/NetPlayChatUI.h" #include "VideoCommon/NetPlayGolfUI.h" @@ -406,6 +407,11 @@ void Renderer::CheckForConfigChanges() UpdateActiveConfig(); + if (g_ActiveConfig.bFreeLook) + { + g_freelook_camera.SetControlType(g_ActiveConfig.iFreelookControlType); + } + // Update texture cache settings with any changed options. g_texture_cache->OnConfigChanged(g_ActiveConfig); |
