Got things to compile again after DRTVWR-559 & DRTVWR-539 merge.
removing dead code and references to members that don't exist anymoremaster
parent
e2dc40a76e
commit
513ac361b1
|
|
@ -408,7 +408,7 @@ bool LLFeatureManager::loadGPUClass()
|
|||
{
|
||||
if (!gSavedSettings.getBOOL("SkipBenchmark"))
|
||||
{
|
||||
F32 class0_gbps = gSavedSettings.getF32("RenderClass0MemoryBandwidth"); // TODO merge brad - figure out what to do with this setting and the below gbps constant comparisons
|
||||
//F32 class0_gbps = gSavedSettings.getF32("RenderClass0MemoryBandwidth"); // TODO merge brad - figure out what to do with this setting and the below gbps constant comparisons
|
||||
//get memory bandwidth from benchmark
|
||||
F32 gbps;
|
||||
try
|
||||
|
|
|
|||
|
|
@ -143,7 +143,7 @@ BOOL LLFloaterPerformance::postBuild()
|
|||
mNearbyPanel->getChild<LLSliderCtrl>("RenderAvatarMaxART")->setCommitCallback(boost::bind(&LLFloaterPerformance::updateMaxRenderTime, this));
|
||||
|
||||
// store the current setting as the users desired reflection detail and DD
|
||||
gSavedSettings.setS32("UserTargetReflections", LLPipeline::RenderReflectionDetail);
|
||||
//gSavedSettings.setS32("UserTargetReflections", LLPipeline::RenderReflectionDetail);
|
||||
if(!LLPerfStats::tunables.userAutoTuneEnabled)
|
||||
{
|
||||
gSavedSettings.setF32("AutoTuneRenderFarClipTarget", LLPipeline::RenderFarClip);
|
||||
|
|
@ -633,7 +633,7 @@ void LLFloaterPerformance::changeQualityLevel(const std::string& notif)
|
|||
|
||||
bool is_ALM_available()
|
||||
{
|
||||
bool bumpshiny = gGLManager.mHasCubeMap && LLCubeMap::sUseCubeMaps && LLFeatureManager::getInstance()->isFeatureAvailable("RenderObjectBump") && gSavedSettings.getBOOL("RenderObjectBump");
|
||||
bool bumpshiny = LLCubeMap::sUseCubeMaps && LLFeatureManager::getInstance()->isFeatureAvailable("RenderObjectBump") && gSavedSettings.getBOOL("RenderObjectBump");
|
||||
bool shaders = gSavedSettings.getBOOL("WindLightUseAtmosShaders");
|
||||
|
||||
return LLFeatureManager::getInstance()->isFeatureAvailable("RenderDeferred") &&
|
||||
|
|
|
|||
|
|
@ -1200,8 +1200,7 @@ void LLFloaterPreference::refreshEnabledState()
|
|||
|
||||
getChildView("block_list")->setEnabled(LLLoginInstance::getInstance()->authSuccess());
|
||||
}
|
||||
// TODO merge brad figure out where LLFloaterPreferenceGraphicsAdvanced::refreshEnabledState() went and port over changes
|
||||
// static
|
||||
|
||||
void LLAvatarComplexityControls::setIndirectControls()
|
||||
{
|
||||
/*
|
||||
|
|
@ -1242,7 +1241,7 @@ void LLAvatarComplexityControls::setIndirectMaxArc()
|
|||
}
|
||||
gSavedSettings.setU32("IndirectMaxComplexity", indirect_max_arc);
|
||||
}
|
||||
// TODO merge brad figure out where LLFloaterPreferenceGraphicsAdvanced::disableUnavailableSettings() went and port over changes
|
||||
|
||||
void LLFloaterPreference::refresh()
|
||||
{
|
||||
LLPanel::refresh();
|
||||
|
|
@ -1726,7 +1725,7 @@ void LLFloaterPreference::onAtmosShaderChange()
|
|||
if(ctrl_alm)
|
||||
{
|
||||
//Deferred/SSAO/Shadows
|
||||
BOOL bumpshiny = gGLManager.mHasCubeMap && LLCubeMap::sUseCubeMaps && LLFeatureManager::getInstance()->isFeatureAvailable("RenderObjectBump") && gSavedSettings.getBOOL("RenderObjectBump");
|
||||
BOOL bumpshiny = LLCubeMap::sUseCubeMaps && LLFeatureManager::getInstance()->isFeatureAvailable("RenderObjectBump") && gSavedSettings.getBOOL("RenderObjectBump");
|
||||
BOOL shaders = gSavedSettings.getBOOL("WindLightUseAtmosShaders");
|
||||
BOOL enabled = LLFeatureManager::getInstance()->isFeatureAvailable("RenderDeferred") &&
|
||||
bumpshiny &&
|
||||
|
|
|
|||
|
|
@ -354,13 +354,13 @@ void LLFloaterPreferenceGraphicsAdvanced::refreshEnabledState()
|
|||
LLTextBox* reflections_text = getChild<LLTextBox>("ReflectionsText");
|
||||
|
||||
// Reflections
|
||||
BOOL reflections = gGLManager.mHasCubeMap && LLCubeMap::sUseCubeMaps;
|
||||
BOOL reflections = LLCubeMap::sUseCubeMaps;
|
||||
ctrl_reflections->setEnabled(reflections);
|
||||
reflections_text->setEnabled(reflections);
|
||||
|
||||
// Bump & Shiny
|
||||
LLCheckBoxCtrl* bumpshiny_ctrl = getChild<LLCheckBoxCtrl>("BumpShiny");
|
||||
bool bumpshiny = gGLManager.mHasCubeMap && LLCubeMap::sUseCubeMaps && LLFeatureManager::getInstance()->isFeatureAvailable("RenderObjectBump");
|
||||
bool bumpshiny = LLCubeMap::sUseCubeMaps && LLFeatureManager::getInstance()->isFeatureAvailable("RenderObjectBump");
|
||||
bumpshiny_ctrl->setEnabled(bumpshiny ? TRUE : FALSE);
|
||||
|
||||
// Avatar Mode
|
||||
|
|
@ -396,21 +396,29 @@ void LLFloaterPreferenceGraphicsAdvanced::refreshEnabledState()
|
|||
terrain_text->setEnabled(FALSE);
|
||||
|
||||
// WindLight
|
||||
LLCheckBoxCtrl* ctrl_wind_light = getChild<LLCheckBoxCtrl>("WindLightUseAtmosShaders");
|
||||
//LLCheckBoxCtrl* ctrl_wind_light = getChild<LLCheckBoxCtrl>("WindLightUseAtmosShaders");
|
||||
//ctrl_wind_light->setEnabled(TRUE);
|
||||
LLSliderCtrl* sky = getChild<LLSliderCtrl>("SkyMeshDetail");
|
||||
LLTextBox* sky_text = getChild<LLTextBox>("SkyMeshDetailText");
|
||||
ctrl_wind_light->setEnabled(TRUE);
|
||||
sky->setEnabled(TRUE);
|
||||
sky_text->setEnabled(TRUE);
|
||||
|
||||
BOOL enabled = TRUE;
|
||||
#if 0 // deferred always on now
|
||||
//Deferred/SSAO/Shadows
|
||||
LLCheckBoxCtrl* ctrl_deferred = getChild<LLCheckBoxCtrl>("UseLightShaders");
|
||||
|
||||
BOOL enabled = LLFeatureManager::getInstance()->isFeatureAvailable("RenderDeferred") &&
|
||||
enabled = LLFeatureManager::getInstance()->isFeatureAvailable("RenderDeferred") &&
|
||||
((bumpshiny_ctrl && bumpshiny_ctrl->get()) ? TRUE : FALSE) &&
|
||||
(ctrl_wind_light->get()) ? TRUE : FALSE;
|
||||
|
||||
ctrl_deferred->setEnabled(enabled);
|
||||
#endif
|
||||
|
||||
LLCheckBoxCtrl* ctrl_pbr = getChild<LLCheckBoxCtrl>("UsePBRShaders");
|
||||
|
||||
//PBR
|
||||
ctrl_pbr->setEnabled(TRUE);
|
||||
|
||||
LLCheckBoxCtrl* ctrl_ssao = getChild<LLCheckBoxCtrl>("UseSSAO");
|
||||
LLCheckBoxCtrl* ctrl_dof = getChild<LLCheckBoxCtrl>("UseDoF");
|
||||
|
|
@ -418,9 +426,9 @@ void LLFloaterPreferenceGraphicsAdvanced::refreshEnabledState()
|
|||
LLTextBox* shadow_text = getChild<LLTextBox>("RenderShadowDetailText");
|
||||
|
||||
// note, okay here to get from ctrl_deferred as it's twin, ctrl_deferred2 will alway match it
|
||||
enabled = enabled && LLFeatureManager::getInstance()->isFeatureAvailable("RenderDeferredSSAO") && (ctrl_deferred->get() ? TRUE : FALSE);
|
||||
enabled = enabled && LLFeatureManager::getInstance()->isFeatureAvailable("RenderDeferredSSAO");// && (ctrl_deferred->get() ? TRUE : FALSE);
|
||||
|
||||
ctrl_deferred->set(gSavedSettings.getBOOL("RenderDeferred"));
|
||||
//ctrl_deferred->set(gSavedSettings.getBOOL("RenderDeferred"));
|
||||
|
||||
ctrl_ssao->setEnabled(enabled);
|
||||
ctrl_dof->setEnabled(enabled);
|
||||
|
|
@ -431,20 +439,23 @@ void LLFloaterPreferenceGraphicsAdvanced::refreshEnabledState()
|
|||
shadow_text->setEnabled(enabled);
|
||||
|
||||
// Hardware settings
|
||||
# if 0 // TODO merge brad VRAM is rewritten
|
||||
F32 mem_multiplier = gSavedSettings.getF32("RenderTextureMemoryMultiple");
|
||||
S32Megabytes min_tex_mem = LLViewerTextureList::getMinVideoRamSetting();
|
||||
S32Megabytes max_tex_mem = LLViewerTextureList::getMaxVideoRamSetting(false, mem_multiplier);
|
||||
getChild<LLSliderCtrl>("GraphicsCardTextureMemory")->setMinValue(min_tex_mem.value());
|
||||
getChild<LLSliderCtrl>("GraphicsCardTextureMemory")->setMaxValue(max_tex_mem.value());
|
||||
|
||||
#endif
|
||||
|
||||
#if 0 // cannot turn off VBOs anymore
|
||||
if (!LLFeatureManager::getInstance()->isFeatureAvailable("RenderVBOEnable") ||
|
||||
!gGLManager.mHasVertexBufferObject)
|
||||
{
|
||||
getChildView("vbo")->setEnabled(FALSE);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!LLFeatureManager::getInstance()->isFeatureAvailable("RenderCompressTextures") ||
|
||||
!gGLManager.mHasVertexBufferObject)
|
||||
if (!LLFeatureManager::getInstance()->isFeatureAvailable("RenderCompressTextures"))
|
||||
{
|
||||
getChildView("texture compression")->setEnabled(FALSE);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -443,6 +443,7 @@ namespace LLPerfStats
|
|||
{
|
||||
// 1 - hack the water to opaque. all non opaque have a significant hit, this is a big boost for (arguably) a minor visual hit.
|
||||
// the other reflection options make comparatively little change and if this overshoots we'll be stepping back up later
|
||||
# if 0 // TODO RenderReflectionDetail went away
|
||||
if(LLPipeline::RenderReflectionDetail != -2)
|
||||
{
|
||||
LLPerfStats::tunables.updateReflectionDetail(-2);
|
||||
|
|
@ -450,6 +451,7 @@ namespace LLPerfStats
|
|||
return;
|
||||
}
|
||||
else // deliberately "else" here so we only do one of these in any given frame
|
||||
#endif
|
||||
{
|
||||
// step down the DD by 10m per update
|
||||
auto new_dd = (LLPipeline::RenderFarClip - DD_STEP > tunables.userMinDrawDistance)?(LLPipeline::RenderFarClip - DD_STEP) : tunables.userMinDrawDistance;
|
||||
|
|
@ -539,7 +541,9 @@ namespace LLPerfStats
|
|||
if( (tot_frame_time_raw * 1.5) < target_frame_time_raw )
|
||||
{
|
||||
// if everything else is "max" and we have >50% headroom let's knock the water quality up a notch at a time.
|
||||
# if 0 // RenderReflectionDetail went away
|
||||
LLPerfStats::tunables.updateReflectionDetail( std::min(LLPipeline::RenderReflectionDetail + 1, tunables.userTargetReflections) );
|
||||
#endif
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -229,10 +229,6 @@ namespace LLPerfStats
|
|||
LL_PROFILE_ZONE_SCOPED_CATEGORY_STATS;
|
||||
// LL_INFOS("perfstats") << "processing update:" << LL_ENDL;
|
||||
// Note: nullptr is used as the key for global stats
|
||||
#ifdef TRACY_ENABLE
|
||||
static char avstr[36];
|
||||
static char obstr[36];
|
||||
#endif
|
||||
|
||||
if (upd.statType == StatType_t::RENDER_DONE && upd.objType == ObjType_t::OT_GENERAL && upd.time == 0)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -158,12 +158,6 @@ static bool handleSetShaderChanged(const LLSD& newvalue)
|
|||
return true;
|
||||
}
|
||||
|
||||
static bool handleShadowDetailChanged(const LLSD& newvalue)
|
||||
{
|
||||
gPipeline.handleShadowDetailChanged();
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool handleRenderPerfTestChanged(const LLSD& newvalue)
|
||||
{
|
||||
bool status = !newvalue.asBoolean();
|
||||
|
|
|
|||
Loading…
Reference in New Issue