mirror of
https://github.com/Boof2015/prism.git
synced 2026-08-17 11:11:18 +02:00
significantly improve visual performance
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user