diff --git a/apps/openmw/mwrender/postprocessor.cpp b/apps/openmw/mwrender/postprocessor.cpp index 4eb410ad29..cdbb8d5618 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 @@ -376,6 +378,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();