From a4094de3a72c2180545cfcb0159e256a6d54b4aa Mon Sep 17 00:00:00 2001 From: scamiv <6170744+scamiv@users.noreply.github.com> Date: Wed, 26 Nov 2025 22:02:12 +0100 Subject: [PATCH] overflows field now acts as a bool --- src/client/graphics/layers/PerformanceOverlay.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/client/graphics/layers/PerformanceOverlay.ts b/src/client/graphics/layers/PerformanceOverlay.ts index b63310f10..6c53bb5b0 100644 --- a/src/client/graphics/layers/PerformanceOverlay.ts +++ b/src/client/graphics/layers/PerformanceOverlay.ts @@ -542,9 +542,9 @@ export class PerformanceOverlay extends LitElement implements Layer { Math.round(ringBufferUtilization * 100) / 100; } - if (ringBufferOverflows !== undefined) { - // Accumulate overflows (overflows is a flag, so add 1 if set) - this.ringBufferOverflows += ringBufferOverflows; + if (ringBufferOverflows !== undefined && ringBufferOverflows !== 0) { + // Remember that an overflow has occurred at least once this run. + this.ringBufferOverflows = 1; } if (ringDrainTime !== undefined) {