significantly improve visual performance

This commit is contained in:
Boof2015
2026-03-28 16:42:43 -04:00
parent a972d4646b
commit 9b22400747
15 changed files with 778 additions and 20 deletions
+4 -1
View File
@@ -195,9 +195,12 @@ export class Oscilloscope {
return
}
const nativeTransport = this.dataSource.getNativeVisualizerTransport?.() ?? null
const pendingSamples = this.dataSource.getPendingOscilloscopeSamples()
for (const chunk of pendingSamples) {
nativeOscilloscope.pushSamples(chunk)
if (!nativeTransport) {
nativeOscilloscope.pushSamples(chunk)
}
this.samplesReceived += chunk.length
}