diff options
| author | Erik Kundiman <erik@megapahit.org> | 2024-12-11 08:08:26 +0800 | 
|---|---|---|
| committer | Erik Kundiman <erik@megapahit.org> | 2024-12-11 08:08:26 +0800 | 
| commit | 4b5794791650a0faf3cb5a1f3f27d9abe63a73fa (patch) | |
| tree | 03e75bd65f2126ceab79ace3c6622d6f6d961929 /indra/newview | |
| parent | b8dded3614bbc8326d420c4e660f58e683f2ac4d (diff) | |
| parent | ae9174ffdf340ef12c80547d90d05919957ab512 (diff) | |
Merge remote-tracking branch 'secondlife/release/2024.09-ExtraFPS' into 2024.09-ExtraFPS
Diffstat (limited to 'indra/newview')
| -rw-r--r-- | indra/newview/app_settings/settings.xml | 2 | ||||
| -rw-r--r-- | indra/newview/app_settings/shaders/class2/deferred/alphaF.glsl | 3 | ||||
| -rw-r--r-- | indra/newview/llappviewer.cpp | 47 | ||||
| -rw-r--r-- | indra/newview/llavatarpropertiesprocessor.cpp | 7 | ||||
| -rw-r--r-- | indra/newview/llfloatereditextdaycycle.cpp | 4 | ||||
| -rw-r--r-- | indra/newview/llfloaterenvironmentadjust.cpp | 4 | ||||
| -rw-r--r-- | indra/newview/llfloaterfixedenvironment.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/llpaneleditsky.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/llreflectionmapmanager.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/llsettingsvo.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/llviewershadermgr.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/pipeline.cpp | 6 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/notifications.xml | 6 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/pl/notifications.xml | 5 | 
14 files changed, 23 insertions, 71 deletions
| diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index 66813e8a67..4739728bee 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -9251,7 +9251,7 @@      <key>Type</key>      <string>Boolean</string>      <key>Value</key> -    <integer>1</integer> +    <integer>0</integer>    </map>    <key>RenderSkyAutoAdjustAmbientScale</key>    <map> diff --git a/indra/newview/app_settings/shaders/class2/deferred/alphaF.glsl b/indra/newview/app_settings/shaders/class2/deferred/alphaF.glsl index e3290e5e3c..d6569cda33 100644 --- a/indra/newview/app_settings/shaders/class2/deferred/alphaF.glsl +++ b/indra/newview/app_settings/shaders/class2/deferred/alphaF.glsl @@ -308,6 +308,7 @@ void main()      final_scale = 1;  #endif -    frag_color = max(color * final_scale, vec4(0)); +    color.rgb *= final_scale; +    frag_color = max(color, vec4(0));  } diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp index 804462504b..4686f81b88 100644 --- a/indra/newview/llappviewer.cpp +++ b/indra/newview/llappviewer.cpp @@ -1056,53 +1056,6 @@ bool LLAppViewer::init()          }      } -#if LL_WINDOWS && ADDRESS_SIZE == 64 -    if (gGLManager.mIsIntel) -    { -        // Check intel driver's version -        // Ex: "3.1.0 - Build 8.15.10.2559"; -        std::string version = ll_safe_string((const char *)glGetString(GL_VERSION)); - -        const boost::regex is_intel_string("[0-9].[0-9].[0-9] - Build [0-9]{1,2}.[0-9]{2}.[0-9]{2}.[0-9]{4}"); - -        if (boost::regex_search(version, is_intel_string)) -        { -            // Valid string, extract driver version -            std::size_t found = version.find("Build "); -            std::string driver = version.substr(found + 6); -            S32 v1, v2, v3, v4; -            S32 count = sscanf(driver.c_str(), "%d.%d.%d.%d", &v1, &v2, &v3, &v4); -            if (count > 0 && v1 <= 10) -            { -                LL_INFOS("AppInit") << "Detected obsolete intel driver: " << driver << LL_ENDL; - -                if (!gViewerWindow->getInitAlert().empty() // graphic initialization crashed on last run -                    || LLVersionInfo::getInstance()->getChannelAndVersion() != gLastRunVersion // viewer was updated -                    || mNumSessions % 20 == 0 //periodically remind user to update driver -                    ) -                { -                    LLUIString details = LLNotifications::instance().getGlobalString("UnsupportedIntelDriver"); -                    std::string gpu_name = ll_safe_string((const char *)glGetString(GL_RENDERER)); -                    LL_INFOS("AppInit") << "Notifying user about obsolete intel driver for " << gpu_name << LL_ENDL; -                    details.setArg("[VERSION]", driver); -                    details.setArg("[GPUNAME]", gpu_name); -                    S32 button = OSMessageBox(details.getString(), -                        LLStringUtil::null, -                        OSMB_YESNO); -                    if (OSBTN_YES == button && gViewerWindow) -                    { -                        std::string url = LLWeb::escapeURL(LLTrans::getString("IntelDriverPage")); -                        if (gViewerWindow->getWindow()) -                        { -                            gViewerWindow->getWindow()->spawnWebBrowser(url, false); -                        } -                    } -                } -            } -        } -    } -#endif -      // Obsolete? mExpectedGLVersion is always zero  #if LL_WINDOWS      if (gGLManager.mGLVersion < LLFeatureManager::getInstance()->getExpectedGLVersion()) diff --git a/indra/newview/llavatarpropertiesprocessor.cpp b/indra/newview/llavatarpropertiesprocessor.cpp index 2e79f3b803..b14d1d7d26 100644 --- a/indra/newview/llavatarpropertiesprocessor.cpp +++ b/indra/newview/llavatarpropertiesprocessor.cpp @@ -41,6 +41,7 @@  #include "lltrans.h"  #include "llui.h"               // LLUI::getLanguage()  #include "message.h" +#include "llappviewer.h"  LLAvatarPropertiesProcessor::LLAvatarPropertiesProcessor()  { @@ -367,7 +368,11 @@ void LLAvatarPropertiesProcessor::requestAvatarPropertiesCoro(std::string cap_ur          avatar_data.picks_list.emplace_back(pick_data["id"].asUUID(), pick_data["name"].asString());      } -    inst.notifyObservers(avatar_id, &avatar_data, type); +    LLAppViewer::instance()->postToMainCoro( +        [avatar_id, avatar_data, type]() +        { +            LLAvatarPropertiesProcessor::instance().notifyObservers(avatar_id, (void*) &avatar_data, type); +        });  }  void LLAvatarPropertiesProcessor::processAvatarLegacyPropertiesReply(LLMessageSystem* msg, void**) diff --git a/indra/newview/llfloatereditextdaycycle.cpp b/indra/newview/llfloatereditextdaycycle.cpp index fd58cd8aaf..42307dd3f8 100644 --- a/indra/newview/llfloatereditextdaycycle.cpp +++ b/indra/newview/llfloatereditextdaycycle.cpp @@ -1712,6 +1712,7 @@ void LLFloaterEditExtDayCycle::onPickerCommitSetting(LLUUID item_id, S32 track)  void LLFloaterEditExtDayCycle::showHDRNotification(const LLSettingsDay::ptr_t &pday)  { +    static LLCachedControl<bool> should_auto_adjust(gSavedSettings, "RenderSkyAutoAdjustLegacy", false);      for (U32 i = LLSettingsDay::TRACK_GROUND_LEVEL; i <= LLSettingsDay::TRACK_MAX; i++)      {          LLSettingsDay::CycleTrack_t &day_track = pday->getCycleTrack(i); @@ -1722,7 +1723,8 @@ void LLFloaterEditExtDayCycle::showHDRNotification(const LLSettingsDay::ptr_t &p          while (iter != end)          {              LLSettingsSky::ptr_t sky = std::static_pointer_cast<LLSettingsSky>(iter->second); -            if (sky +            if (should_auto_adjust() +                && sky                  && sky->canAutoAdjust()                  && sky->getReflectionProbeAmbiance(true) != 0.f)              { diff --git a/indra/newview/llfloaterenvironmentadjust.cpp b/indra/newview/llfloaterenvironmentadjust.cpp index 3b8a25b3a6..35f8340997 100644 --- a/indra/newview/llfloaterenvironmentadjust.cpp +++ b/indra/newview/llfloaterenvironmentadjust.cpp @@ -178,7 +178,7 @@ void LLFloaterEnvironmentAdjust::refresh()      getChild<LLTextureCtrl>(FIELD_SKY_CLOUD_MAP)->setValue(mLiveSky->getCloudNoiseTextureId());      getChild<LLTextureCtrl>(FIELD_WATER_NORMAL_MAP)->setValue(mLiveWater->getNormalMapID()); -    static LLCachedControl<bool> should_auto_adjust(gSavedSettings, "RenderSkyAutoAdjustLegacy", true); +    static LLCachedControl<bool> should_auto_adjust(gSavedSettings, "RenderSkyAutoAdjustLegacy", false);      getChild<LLUICtrl>(FIELD_REFLECTION_PROBE_AMBIANCE)->setValue(mLiveSky->getReflectionProbeAmbiance(should_auto_adjust));      LLColor3 glow(mLiveSky->getGlow()); @@ -494,7 +494,7 @@ void LLFloaterEnvironmentAdjust::updateGammaLabel()  {      if (!mLiveSky) return; -    static LLCachedControl<bool> should_auto_adjust(gSavedSettings, "RenderSkyAutoAdjustLegacy", true); +    static LLCachedControl<bool> should_auto_adjust(gSavedSettings, "RenderSkyAutoAdjustLegacy", false);      F32 ambiance = mLiveSky->getReflectionProbeAmbiance(should_auto_adjust);      if (ambiance != 0.f)      { diff --git a/indra/newview/llfloaterfixedenvironment.cpp b/indra/newview/llfloaterfixedenvironment.cpp index e44202312b..d28c987414 100644 --- a/indra/newview/llfloaterfixedenvironment.cpp +++ b/indra/newview/llfloaterfixedenvironment.cpp @@ -182,8 +182,10 @@ void LLFloaterFixedEnvironment::setEditSettingsAndUpdate(const LLSettingsBase::p      LLEnvironment::instance().updateEnvironment(LLEnvironment::TRANSITION_INSTANT);      // teach user about HDR settings +    static LLCachedControl<bool> should_auto_adjust(gSavedSettings, "RenderSkyAutoAdjustLegacy", false);      if (mSettings          && mSettings->getSettingsType() == "sky" +        && should_auto_adjust()          && ((LLSettingsSky*)mSettings.get())->canAutoAdjust()          && ((LLSettingsSky*)mSettings.get())->getReflectionProbeAmbiance(true) != 0.f)      { diff --git a/indra/newview/llpaneleditsky.cpp b/indra/newview/llpaneleditsky.cpp index ea2b2ba944..3d376251ff 100644 --- a/indra/newview/llpaneleditsky.cpp +++ b/indra/newview/llpaneleditsky.cpp @@ -209,7 +209,7 @@ void LLPanelSettingsSkyAtmosTab::refresh()      F32 droplet_radius  = mSkySettings->getSkyDropletRadius();      F32 ice_level       = mSkySettings->getSkyIceLevel(); -    static LLCachedControl<bool> should_auto_adjust(gSavedSettings, "RenderSkyAutoAdjustLegacy", true); +    static LLCachedControl<bool> should_auto_adjust(gSavedSettings, "RenderSkyAutoAdjustLegacy", false);      F32 rp_ambiance     = mSkySettings->getReflectionProbeAmbiance(should_auto_adjust);      getChild<LLUICtrl>(FIELD_SKY_DENSITY_MOISTURE_LEVEL)->setValue(moisture_level); diff --git a/indra/newview/llreflectionmapmanager.cpp b/indra/newview/llreflectionmapmanager.cpp index ad8d6ff7bf..d66c131a09 100644 --- a/indra/newview/llreflectionmapmanager.cpp +++ b/indra/newview/llreflectionmapmanager.cpp @@ -1080,7 +1080,7 @@ void LLReflectionMapManager::updateUniforms()      LLEnvironment& environment = LLEnvironment::instance();      LLSettingsSky::ptr_t psky = environment.getCurrentSky(); -    static LLCachedControl<bool> should_auto_adjust(gSavedSettings, "RenderSkyAutoAdjustLegacy", true); +    static LLCachedControl<bool> should_auto_adjust(gSavedSettings, "RenderSkyAutoAdjustLegacy", false);      F32 minimum_ambiance = psky->getReflectionProbeAmbiance(should_auto_adjust);      bool is_ambiance_pass = gCubeSnapshot && !isRadiancePass(); diff --git a/indra/newview/llsettingsvo.cpp b/indra/newview/llsettingsvo.cpp index 85e2f4db90..cf96072ae2 100644 --- a/indra/newview/llsettingsvo.cpp +++ b/indra/newview/llsettingsvo.cpp @@ -795,7 +795,7 @@ void LLSettingsVOSky::applySpecial(void *ptarget, bool force)      F32 g = getGamma();      static LLCachedControl<bool> hdr(gSavedSettings, "RenderHDREnabled"); -    static LLCachedControl<bool> should_auto_adjust(gSavedSettings, "RenderSkyAutoAdjustLegacy", true); +    static LLCachedControl<bool> should_auto_adjust(gSavedSettings, "RenderSkyAutoAdjustLegacy", false);      static LLCachedControl<F32> auto_adjust_ambient_scale(gSavedSettings, "RenderSkyAutoAdjustAmbientScale", 0.75f);      static LLCachedControl<F32> auto_adjust_hdr_scale(gSavedSettings, "RenderSkyAutoAdjustHDRScale", 2.f);      static LLCachedControl<F32> auto_adjust_blue_horizon_scale(gSavedSettings, "RenderSkyAutoAdjustBlueHorizonScale", 1.f); diff --git a/indra/newview/llviewershadermgr.cpp b/indra/newview/llviewershadermgr.cpp index 9f04c98770..7ce9c02e8d 100644 --- a/indra/newview/llviewershadermgr.cpp +++ b/indra/newview/llviewershadermgr.cpp @@ -2811,7 +2811,7 @@ bool LLViewerShaderMgr::loadShadersDeferred()          gDeferredStarProgram.mShaderGroup = LLGLSLShader::SG_SKY;          gDeferredStarProgram.addConstant( LLGLSLShader::SHADER_CONST_STAR_DEPTH ); // SL-14113 -        add_common_permutations(&gDeferredWLSkyProgram); +        add_common_permutations(&gDeferredStarProgram);          success = gDeferredStarProgram.createShader();          llassert(success); diff --git a/indra/newview/pipeline.cpp b/indra/newview/pipeline.cpp index 85af326005..93bfc25ae2 100644 --- a/indra/newview/pipeline.cpp +++ b/indra/newview/pipeline.cpp @@ -7184,7 +7184,7 @@ void LLPipeline::tonemap(LLRenderTarget* src, LLRenderTarget* dst)          // Apply gamma correction to the frame here. -        static LLCachedControl<bool> should_auto_adjust(gSavedSettings, "RenderSkyAutoAdjustLegacy", true); +        static LLCachedControl<bool> should_auto_adjust(gSavedSettings, "RenderSkyAutoAdjustLegacy", false);          LLSettingsSky::ptr_t psky = LLEnvironment::instance().getCurrentSky(); @@ -7234,7 +7234,7 @@ void LLPipeline::gammaCorrect(LLRenderTarget* src, LLRenderTarget* dst)          LLGLDepthTest depth(GL_FALSE, GL_FALSE);          static LLCachedControl<bool> buildNoPost(gSavedSettings, "RenderDisablePostProcessing", false); -        static LLCachedControl<bool> should_auto_adjust(gSavedSettings, "RenderSkyAutoAdjustLegacy", true); +        static LLCachedControl<bool> should_auto_adjust(gSavedSettings, "RenderSkyAutoAdjustLegacy", false);          LLSettingsSky::ptr_t psky = LLEnvironment::instance().getCurrentSky();          LLGLSLShader& shader = psky->getReflectionProbeAmbiance(should_auto_adjust) == 0.f ? gLegacyPostGammaCorrectProgram : @@ -8360,7 +8360,7 @@ void LLPipeline::bindDeferredShader(LLGLSLShader& shader, LLRenderTarget* light_      }      // auto adjust legacy sun color if needed -    static LLCachedControl<bool> should_auto_adjust(gSavedSettings, "RenderSkyAutoAdjustLegacy", true); +    static LLCachedControl<bool> should_auto_adjust(gSavedSettings, "RenderSkyAutoAdjustLegacy", false);      static LLCachedControl<F32> auto_adjust_sun_color_scale(gSavedSettings, "RenderSkyAutoAdjustSunColorScale", 1.f);      LLSettingsSky::ptr_t psky = LLEnvironment::instance().getCurrentSky();      LLColor3 sun_diffuse(mSunDiffuse.mV); diff --git a/indra/newview/skins/default/xui/en/notifications.xml b/indra/newview/skins/default/xui/en/notifications.xml index ea5689ed65..355b5964ed 100644 --- a/indra/newview/skins/default/xui/en/notifications.xml +++ b/indra/newview/skins/default/xui/en/notifications.xml @@ -10159,12 +10159,6 @@ Do you wish to continue?       yestext="OK"/>    </notification> -  <global name="UnsupportedIntelDriver"> -The installed Intel graphics driver for [GPUNAME], version [VERSION], is significantly out of date and is known to cause excessive rates of program crashes. You are strongly advised to update to a current Intel driver - -Do you want to check the Intel driver website? -  </global> -    <global name="UnsupportedCPUAmount">  796    </global> diff --git a/indra/newview/skins/default/xui/pl/notifications.xml b/indra/newview/skins/default/xui/pl/notifications.xml index e668c6cc20..ad9d2ecf1d 100644 --- a/indra/newview/skins/default/xui/pl/notifications.xml +++ b/indra/newview/skins/default/xui/pl/notifications.xml @@ -3577,11 +3577,6 @@ Czy chcesz kontynuować?  		Wybrany obiekt ma wpływ na Navmesh. Dodanie elastyczności spowoduje usunięcie go z Navmesha.  		<usetemplate ignoretext="Wybrany obiekt ma wpływ na Navmesh. Dodanie elastyczności spowoduje usunięcie go z Navmesha." name="okcancelignore" notext="Anuluj" />  	</notification> -	<global name="UnsupportedIntelDriver"> -		Zainstalowany sterownik graficzny Intela dla [GPUNAME], wersja [VERSION], jest przestarzały i jest znany z powodowania awarii. Zdecydowanie zaleca się aktualizację do aktualnego sterownika Intel. - -Czy chcesz sprawdzić witrynę sterowników firmy Intel? -	</global>  	<global name="UnsupportedGPU">  		- Twoja karta graficzna nie spełnia minimalnych wymagań.  	</global> | 
