We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Shader types, so only invalidate specific shader type (e.g,. Lighting)
skyrim-community-shaders/src/ShaderCache.cpp
Lines 1902 to 1903 in 056d064
GetHumanTime(GetEta() + totalMs)); } void UpdateListener::UpdateCache(const std::filesystem::path& filePath, SIE::ShaderCache& cache, bool& clearCache, bool& fileDone) { std::string extension = filePath.extension().string(); std::string parentDir = filePath.parent_path().string(); std::string shaderTypeString = filePath.stem().string(); std::chrono::time_point<std::chrono::system_clock> modifiedTime{}; auto shaderType = magic_enum::enum_cast<RE::BSShader::Type>(shaderTypeString, magic_enum::case_insensitive); fileDone = true; if (std::filesystem::exists(filePath)) modifiedTime = std::chrono::clock_cast<std::chrono::system_clock>(std::filesystem::last_write_time(filePath)); else // if file doesn't exist, don't do anything return; if (!std::filesystem::is_directory(filePath) && extension.starts_with(".hlsl") && parentDir.ends_with("Shaders") && shaderType.has_value()) { // TODO: Case insensitive checks // Shader types, so only invalidate specific shader type (e.g,. Lighting) cache.InsertModifiedShaderMap(shaderTypeString, modifiedTime); cache.Clear(shaderType.value()); } else if (!std::filesystem::is_directory(filePath) && extension.starts_with(".hlsl")) { // TODO: Case insensitive checks // all other shaders, since we don't know what is using it, clear everything clearCache = true; } fileDone = false; } void UpdateListener::processQueue() { SetThreadPriority(GetCurrentThread(), THREAD_PRIORITY_BELOW_NORMAL);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Shader types, so only invalidate specific shader type (e.g,. Lighting)
skyrim-community-shaders/src/ShaderCache.cpp
Lines 1902 to 1903 in 056d064
The text was updated successfully, but these errors were encountered: