Skip to content

Commit 8f6de5b

Browse files
committed
Merge branch 'xbei/option_hash_merge_fix' into 'main'
[REMIX-4752] Fix issue that texture category hashes getting cleared on change See merge request lightspeedrtx/dxvk-remix-nv!1817
2 parents 9c97d33 + 3170e58 commit 8f6de5b

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/dxvk/rtx_render/rtx_option.cpp

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -844,8 +844,15 @@ namespace dxvk {
844844
addWeightedValue(optionLayer.second.value, optionLayer.second.blendStrength * throughput, optionValue.data);
845845
throughput *= (1.0f - optionLayer.second.blendStrength);
846846
} else {
847-
if (optionLayer.second.blendStrength >= optionLayer.second.blendThreshold || optionLayer.first.priority == 0) {
848-
addWeightedValue(optionLayer.second.value, throughput, optionValue.data);
847+
addWeightedValue(optionLayer.second.value, throughput, optionValue.data);
848+
849+
// For non-collection-like types, we always break after applying the weight
850+
if (type != OptionType::HashSet && type != OptionType::HashVector && type != OptionType::IntVector) {
851+
break;
852+
}
853+
854+
// For collection-like types, we only continue if the blend strength is high then threshold
855+
if (optionLayer.second.blendStrength < optionLayer.second.blendThreshold) {
849856
break;
850857
}
851858
}

0 commit comments

Comments
 (0)