summaryrefslogtreecommitdiff
path: root/indra/newview/llappviewer.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <117672381+akleshchev@users.noreply.github.com>2026-08-25 20:18:58 +0300
committerGitHub <noreply@github.com>2026-08-25 20:18:58 +0300
commit60b7e3b78cc401318e4f895bb64b5688645b3462 (patch)
treebe4775270cfb66e6cd414321fc3f0632dc511f14 /indra/newview/llappviewer.cpp
parenta402fd4da91bbce03340e174505c06feede65866 (diff)
#6153 Make hardware test more robust
Diffstat (limited to 'indra/newview/llappviewer.cpp')
-rw-r--r--indra/newview/llappviewer.cpp43
1 files changed, 33 insertions, 10 deletions
diff --git a/indra/newview/llappviewer.cpp b/indra/newview/llappviewer.cpp
index 35a2cc1852..d155e7340b 100644
--- a/indra/newview/llappviewer.cpp
+++ b/indra/newview/llappviewer.cpp
@@ -300,6 +300,13 @@ extern bool gDebugGL;
extern bool gHiDPISupport;
#endif
+#if LL_WINDOWS
+extern bool gGPUBenchmarkMode;
+#else
+static constexpr bool gGPUBenchmarkMode = false;
+#endif // LL_WINDOWS
+
+
////////////////////////////////////////////////////////////
// All from the last globals push...
@@ -2373,11 +2380,17 @@ void LLAppViewer::initLoggingAndGetLastDuration()
if (mSecondInstance)
{
- LLFile::mkdir(gDirUtilp->getDumpLogsDirPath());
+ if (!gGPUBenchmarkMode)
+ {
+ LLFile::mkdir(gDirUtilp->getDumpLogsDirPath());
- LLUUID uid;
- uid.generate();
- LLError::logToFile(gDirUtilp->getDumpLogsDirPath(uid.asString() + ".log"));
+ LLUUID uid;
+ uid.generate();
+ // Is this even useful?
+ // Originally this wa used to store states, but I don't think it's practical with bugsplat attributes.
+ // So it just spams files now.
+ LLError::logToFile(gDirUtilp->getDumpLogsDirPath(uid.asString() + ".log"));
+ }
}
else
{
@@ -3081,12 +3094,15 @@ bool LLAppViewer::initConfiguration()
// Display splash screen. Must be after above check for previous
// crash as this dialog is always frontmost.
- std::string splash_msg;
- LLStringUtil::format_map_t args;
- args["[APP_NAME]"] = LLTrans::getString("SECOND_LIFE");
- splash_msg = LLTrans::getString("StartupLoading", args);
- LLSplashScreen::show();
- LLSplashScreen::update(splash_msg);
+ if (!gGPUBenchmarkMode)
+ {
+ std::string splash_msg;
+ LLStringUtil::format_map_t args;
+ args["[APP_NAME]"] = LLTrans::getString("SECOND_LIFE");
+ splash_msg = LLTrans::getString("StartupLoading", args);
+ LLSplashScreen::show();
+ LLSplashScreen::update(splash_msg);
+ }
//LLVolumeMgr::initClass();
LLVolumeMgr* volume_manager = new LLVolumeMgr();
@@ -4139,6 +4155,13 @@ bool LLAppViewer::getMarkerData(const std::string& marker_name, std::string& dat
void LLAppViewer::processMarkerFiles()
{
+ if (gGPUBenchmarkMode)
+ {
+ // Skipping marker file processing in GPU benchmark mode
+ mSecondInstance = true;
+ initLoggingAndGetLastDuration();
+ return;
+ }
//We've got 4 things to test for here
// - Other Process Running (SecondLife.exec_marker present, locked)
// - Freeze (SecondLife.exec_marker present, not locked)