diff --git a/apps/openmw/mwrender/postprocessor.cpp b/apps/openmw/mwrender/postprocessor.cpp index b0ea3ecdd5..c2091ee249 100644 --- a/apps/openmw/mwrender/postprocessor.cpp +++ b/apps/openmw/mwrender/postprocessor.cpp @@ -1,6 +1,8 @@ #include "postprocessor.hpp" #include +#include +#include #include #include @@ -377,6 +379,10 @@ namespace MWRender if (!isDirty) continue; + // TODO: Temporary workaround to avoid conflicts with external programs saving the file, especially problematic on Windows. + // If we move to a file watcher using native APIs this should be removed. + std::this_thread::sleep_for(std::chrono::milliseconds(5)); + if (technique->compile()) Log(Debug::Info) << "Reloaded technique : " << mTechniqueFileMap[technique->getName()].string();