Skip to content

Commit eb9cb1a

Browse files
committed
#4794 SceneLoadRearMaxRadiusFraction not stored as a fraction
1 parent 688224a commit eb9cb1a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

indra/newview/app_settings/settings.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10341,13 +10341,13 @@
1034110341
<key>SceneLoadRearMaxRadiusFraction</key>
1034210342
<map>
1034310343
<key>Comment</key>
10344-
<string>a percentage of draw distance beyond which all objects outside of view frustum will be unloaded, regardless of pixel threshold</string>
10344+
<string>a fraction of draw distance beyond which all objects outside of view frustum will be unloaded, regardless of pixel threshold</string>
1034510345
<key>Persist</key>
1034610346
<integer>1</integer>
1034710347
<key>Type</key>
1034810348
<string>F32</string>
1034910349
<key>Value</key>
10350-
<real>75.0</real>
10350+
<real>0.75</real>
1035110351
</map>
1035210352
<key>SceneLoadRearPixelThreshold</key>
1035310353
<map>

indra/newview/llvocache.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -498,7 +498,7 @@ void LLVOCacheEntry::updateDebugSettings()
498498
sNearRadius = MIN_RADIUS + ((clamped_min_radius - MIN_RADIUS) * adjust_factor);
499499

500500
// a percentage of draw distance beyond which all objects outside of view frustum will be unloaded, regardless of pixel threshold
501-
static LLCachedControl<F32> rear_max_radius_frac(gSavedSettings,"SceneLoadRearMaxRadiusFraction");
501+
static LLCachedControl<F32> rear_max_radius_frac(gSavedSettings,"SceneLoadRearMaxRadiusFraction", .75f);
502502
const F32 min_radius_plus_one = sNearRadius + 1.f;
503503
const F32 max_radius = rear_max_radius_frac * draw_radius;
504504
const F32 clamped_max_radius = llclamp(max_radius, min_radius_plus_one, draw_radius); // [sNearRadius, mDrawDistance]

0 commit comments

Comments
 (0)