Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions src/XSEPlugin.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

#include "DX12SwapChain.h"
#include "Deferred.h"
#include "FrameAnnotations.h"
Expand Down Expand Up @@ -91,16 +90,18 @@ void MessageHandler(SKSE::MessagingInterface::Message* message)

auto shaderCache = globals::shaderCache;

shaderCache->ValidateDiskCache();

if (shaderCache->UseFileWatcher())
shaderCache->StartFileWatcher();

// Run feature PostPostLoad() first so features can disable themselves if needed
for (auto* feature : Feature::GetFeatureList()) {
if (feature->loaded) {
feature->PostPostLoad();
}
}

// Now validate disk cache after features have had a chance to modify their state
shaderCache->ValidateDiskCache();

if (shaderCache->UseFileWatcher())
shaderCache->StartFileWatcher();
}

break;
Expand Down