Skip to content

Commit

Permalink
Improved frame buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
Amanmahe committed Dec 6, 2024
1 parent aa7d423 commit 6af2dfe
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/components/Canvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ const Canvas = forwardRef(
array3DRef.current[activebuffer.current][i] = [];
}
}


if (array3DRef.current[activebuffer.current][0].length >= numX) {
snapShotRef.current[activebuffer.current] = true;
activebuffer.current = (activebuffer.current + 1) % 6;
Expand All @@ -112,8 +110,8 @@ const Canvas = forwardRef(
currentSweepPos.current = new Array(numChannels).fill(0);
sweepPositions.current = new Array(numChannels).fill(0);
}
processIncomingData(data);
if (pauseRef.current) {
processIncomingData(data);
updatePlots(data, Zoom);
}
if (previousCounter !== null) {
Expand Down

0 comments on commit 6af2dfe

Please sign in to comment.