Skip to content

#6153 Make hardware test more robust - #6175

Merged
akleshchev merged 5 commits into
developfrom
andreyk/viewer_6153
Aug 25, 2026
Merged

#6153 Make hardware test more robust#6175
akleshchev merged 5 commits into
developfrom
andreyk/viewer_6153

Conversation

@akleshchev

@akleshchev akleshchev commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Harware test can freeze and crash, taking whole viewer with it. Move test to a process to make sure viewer doesn't get affected.

@akleshchev
akleshchev marked this pull request as draft August 24, 2026 17:31
@github-actions github-actions Bot added the c/cpp label Aug 24, 2026
@akleshchev
akleshchev requested review from Geenz and a lite review from Copilot August 24, 2026 17:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR aims to prevent GPU hardware benchmarking from freezing/crashing the main viewer by running the benchmark in a dedicated subprocess on Windows and returning the result via stdout.

Changes:

  • Add Windows subprocess execution path for the GPU memory bandwidth benchmark and a --gpubenchmark mode to run-and-exit.
  • Teach startup/init to behave differently in benchmark subprocess mode (skip mutex, console, splash, marker processing, extra dump logs).
  • Document and allow the new command-line flag through the command-line option system.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
indra/newview/llfeaturemanager.cpp Runs the GPU benchmark in an isolated subprocess and returns the parsed result to the main process.
indra/newview/llcommandlineparser.cpp Adds gpubenchmark to the set of permitted unmapped command-line switches.
indra/newview/llappviewerwin32.cpp Detects --gpubenchmark early and adjusts startup behavior (mutex/console) for subprocess mode.
indra/newview/llappviewer.cpp Skips splash/marker/log spam behaviors when running in GPU benchmark subprocess mode.
indra/newview/app_settings/cmd_line.xml Documents the new --gpubenchmark command-line switch.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread indra/newview/llappviewer.cpp
Comment thread indra/newview/llappviewer.cpp Outdated
Comment thread indra/newview/llfeaturemanager.cpp
Comment thread indra/newview/llfeaturemanager.cpp Outdated
akleshchev and others added 3 commits August 24, 2026 20:42
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@akleshchev akleshchev linked an issue Aug 24, 2026 that may be closed by this pull request
@akleshchev
akleshchev requested a lite review from Copilot August 24, 2026 18:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 7 out of 7 changed files in this pull request and generated 3 comments.

Suppressed comments (1)

indra/newview/llappviewer.cpp:2390

  • Typo in comment: "wa" → "was".
            // Originally this wa used to store states, but I don't think it's practical with bugsplat attributes.

Comment thread indra/newview/llfeaturemanager.cpp Outdated
Comment thread indra/llcommon/llprocess.cpp Outdated
Comment thread indra/llcommon/llprocess.h
@akleshchev
akleshchev marked this pull request as ready for review August 24, 2026 19:29
@akleshchev
akleshchev merged commit 60b7e3b into develop Aug 25, 2026
20 checks passed
@akleshchev
akleshchev deleted the andreyk/viewer_6153 branch August 25, 2026 17:19
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Make hardware test more robust

4 participants