diff --git a/components/shader/shadermanager.cpp b/components/shader/shadermanager.cpp index 44a08ddfa3..223ca9cd02 100644 --- a/components/shader/shadermanager.cpp +++ b/components/shader/shadermanager.cpp @@ -387,7 +387,8 @@ namespace Shader void update(ShaderManager& Manager) { - if (mHotReloadEnabled) + auto timeSinceLastCheckMillis = std::chrono::duration_cast(std::filesystem::file_time_type::clock::now() - mLastAutoRecompileTime); + if (mHotReloadEnabled && timeSinceLastCheckMillis.count() > 200) reloadTouchedShaders(Manager); }