We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e2784e commit 1e3d2e1Copy full SHA for 1e3d2e1
src/client/graphics/layers/PerformanceOverlay.ts
@@ -542,9 +542,9 @@ export class PerformanceOverlay extends LitElement implements Layer {
542
Math.round(ringBufferUtilization * 100) / 100;
543
}
544
545
- if (ringBufferOverflows !== undefined) {
546
- // Accumulate overflows (overflows is a flag, so add 1 if set)
547
- this.ringBufferOverflows += ringBufferOverflows;
+ if (ringBufferOverflows !== undefined && ringBufferOverflows !== 0) {
+ // Remember that an overflow has occurred at least once this run.
+ this.ringBufferOverflows = 1;
548
549
550
if (ringDrainTime !== undefined) {
0 commit comments