InputCommon / VideoCommon: remove dynamic input reloading the texture cache, this is no longer needed, assets reload automatically!

This commit is contained in:
iwubcode
2023-03-22 20:56:13 -05:00
parent ca8d6748d6
commit e831d7b6bb
3 changed files with 5 additions and 32 deletions

View File

@ -272,7 +272,6 @@ public:
void Shutdown();
void OnConfigChanged(const VideoConfig& config);
void ForceReload();
// Removes textures which aren't used for more than TEXTURE_KILL_THRESHOLD frames,
// frameCount is the current frame number.
@ -313,9 +312,6 @@ public:
static bool AllCopyFilterCoefsNeeded(const std::array<u32, 3>& coefficients);
static bool CopyFilterCanOverflow(const std::array<u32, 3>& coefficients);
// Will forcibly reload all textures when the frame next ends
void ForceReloadTextures() { m_force_reload_textures.Set(); }
protected:
// Decodes the specified data to the GPU texture specified by entry.
// Returns false if the configuration is not supported.
@ -468,7 +464,6 @@ private:
void OnFrameEnd();
Common::Flag m_force_reload_textures;
Common::EventHook m_frame_event =
AfterFrameEvent::Register([this] { OnFrameEnd(); }, "TextureCache");
};