From 39c51e0fcce54d7cdef9a19ddac2ad00f9919321 Mon Sep 17 00:00:00 2001 From: souldbminersmwc Date: Fri, 12 Jun 2026 16:33:53 -0400 Subject: [PATCH] Update main.cpp --- Source/Benchmark-Toolbox/source/main.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Source/Benchmark-Toolbox/source/main.cpp b/Source/Benchmark-Toolbox/source/main.cpp index 72f5cdbd..8aad935f 100644 --- a/Source/Benchmark-Toolbox/source/main.cpp +++ b/Source/Benchmark-Toolbox/source/main.cpp @@ -587,12 +587,18 @@ class MemtesterTab : public brls::Box { rowA = makeRow(this, "Loops"); rowB = makeRow(this, "Mismatches"); rowC = makeRow(this, "Detail"); + + updateBar(); } void setProgress(float f) { barFill->setWidthPercentage(f * 100.0f); } + void updateBar() { + bar->setVisibility(isGpu() ? brls::Visibility::GONE : brls::Visibility::VISIBLE); + } + ~MemtesterTab() override { stopAny(); } @@ -612,7 +618,6 @@ class MemtesterTab : public brls::Box { rowC->setText(fstru("%llu MB tested", (unsigned long long)s.size_mb)); statusL->setText(s.error ? std::string("Error: ") + s.status : std::string(s.status)); } - setProgress(0.0f); syncToggle(s.running != 0); } else { mt_cpu_status_t s; @@ -659,6 +664,7 @@ class MemtesterTab : public brls::Box { return; mode = (mode + dir + 4) % 4; modeVal->setText(modeName(mode)); + updateBar(); } void onToggle() { if (anyRunning())