Skip to content

Commit 03590ce

Browse files
Merge branch 'cleanup' into 'main'
Cleaning up some unused values. See merge request lightspeedrtx/dxvk-remix-nv!1679
2 parents 52baaf9 + 90c243d commit 03590ce

File tree

6 files changed

+4
-8
lines changed

6 files changed

+4
-8
lines changed

RtxOptions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Tables below enumerate all the options and their defaults set by RTX Remix. Note
6565
|rtx.antiCulling.light.enable|bool|False|||Enable Anti\-Culling for lights\.|
6666
|rtx.antiCulling.light.fovScale|float|1|||Scalar of the FOV of lights Anti\-Culling Frustum\.|
6767
|rtx.antiCulling.light.numFramesToExtendLightLifetime|int|1000|||Maximum number of frames to keep when Anti\-Culling is enabled\. Make sure not to set this too low \(then the anti\-culling won't work\), nor too high \(which will hurt the performance\)\.|
68-
|rtx.antiCulling.light.numLightsToKeep|int|1000|||Maximum number of lights to keep when Anti\-Culling is enabled\.|
68+
|rtx.antiCulling.light.numLightsToKeep|int|1000|||\(DEPRECATED\)|
6969
|rtx.antiCulling.object.enable|bool|False|||Extends lifetime of objects that go outside the camera frustum \(anti\-culling frustum\)\.|
7070
|rtx.antiCulling.object.enableHighPrecisionAntiCulling|bool|True|||Use robust intersection check with Separate Axis Theorem\.<br>This method is slightly expensive but it effectively addresses object flickering issues that arise from corner cases in the fast intersection check method\.<br>Typically, it's advisable to enable this option unless it results in a notable performance drop; otherwise, the presence of flickering artifacts could significantly diminish the overall image quality\.|
7171
|rtx.antiCulling.object.enableInfinityFarFrustum|bool|False|||Enable infinity far plane frustum for anti\-culling\.|

src/dxvk/rtx_render/graph/rtx_graph_manager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ class GraphManager {
5353
});
5454
}
5555

56-
GraphInstance* addInstance(Rc<DxvkContext> context, const RtGraphState& graphState, ReplacementInstance* replacementInstance) {
56+
GraphInstance* addInstance(Rc<DxvkContext> context, const RtGraphState& graphState) {
5757
ScopedCpuProfileZone();
5858
auto iter = m_batches.find(graphState.topology.graphHash);
5959
if (iter == m_batches.end()) {

src/dxvk/rtx_render/rtx_light_manager.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,6 @@ namespace dxvk {
121121
const uint32_t framesToKeep = RtxOptions::numFramesToKeepLights();
122122
const uint32_t framesToSleep = RtxOptions::getNumFramesToPutLightsToSleep();
123123

124-
const bool forceGarbageCollection = (m_lights.size() >= RtxOptions::AntiCulling::Light::numLightsToKeep());
125124
for (auto it = m_lights.begin(); it != m_lights.end();) {
126125
const RtLight& light = it->second;
127126
if (light.isMarkedForGarbageCollection()) {

src/dxvk/rtx_render/rtx_options.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ namespace dxvk {
571571
friend class ImGUI;
572572
friend class RtxOptions;
573573
RTX_OPTION_ENV("rtx.antiCulling.light", bool, enable, false, "RTX_ANTI_CULLING_LIGHTS", "Enable Anti-Culling for lights.");
574-
RTX_OPTION("rtx.antiCulling.light", uint32_t, numLightsToKeep, 1000, "Maximum number of lights to keep when Anti-Culling is enabled.");
574+
RTX_OPTION("rtx.antiCulling.light", uint32_t, numLightsToKeep, 1000, "(DEPRECATED)");
575575
RTX_OPTION("rtx.antiCulling.light", uint32_t, numFramesToExtendLightLifetime, 1000, "Maximum number of frames to keep when Anti-Culling is enabled. Make sure not to set this too low (then the anti-culling won't work), nor too high (which will hurt the performance).");
576576
RTX_OPTION("rtx.antiCulling.light", float, fovScale, 1.0f, "Scalar of the FOV of lights Anti-Culling Frustum.");
577577
};

src/dxvk/rtx_render/rtx_scene_manager.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,7 @@ namespace dxvk {
781781
));
782782
break;
783783
}
784-
GraphInstance* graphInstance = m_graphManager.addInstance(ctx, replacement.graphState.value(), replacementInstance);
784+
GraphInstance* graphInstance = m_graphManager.addInstance(ctx, replacement.graphState.value());
785785
if (graphInstance) {
786786
graphInstance->getPrimInstanceOwner().setReplacementInstance(replacementInstance, i, graphInstance, PrimInstance::Type::Graph);
787787
}

src/dxvk/rtx_render/rtx_types.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,9 +63,6 @@ class PrimInstance {
6363
Graph,
6464
None
6565
};
66-
// set to 0 because the Id is based on a pointer value, so the id of an empty Entity is nullptr.
67-
static constexpr uint64_t kEmptyId = 0;
68-
6966
// Use `Entity()` to create a nullptr Entity.
7067
PrimInstance() {}
7168

0 commit comments

Comments
 (0)