Fixing a Flickering Waveform · REAPER Real-Time Audio Effects @leafac
Fixing a Flickering Waveform · REAPER Real-Time Audio Effects  @leafac
Uploaded March 2022 | Updated November 2026, 4 days ago
leafac.com · github.com/leafac/reaper

———

We talked about 4 issues with the current waveform drawing situation:

1. Flickering at the edges of peaks.
2. CPU use on the audio thread.
3. Scrolling isn’t smooth.
4. There’s a glitchy line at the left, showing the race condition between the audio and the gfx threads when accessing the circular buffer.

We talked about a solution to all these problems:

1. Using a circular buffer just for the communication between the audio and the gfx threads.
2. The gfx thread doesn‘t read from this circular buffer based on an offset of the write index, but keeps its own read index that catches up to the write index.
3. The gfx thread reads the samples from the circular buffer, computes the slices, and stores them for drawing.
4. We’ll play with the idea of this storage happening on a different gfx_dest.

We were able to implement parts 1 and 2 of the idea above.
Fixing a Flickering Waveform · REAPER Real-Time Audio EffectsA Brief Introduction to How the REAPER Video Processor Handles Items & CompositingTesting the New Parameters Infrastructure · REAPER Real-Time Audio Effects (JSFX)Circling Back to Circular Buffers · REAPER Real-Time Audio EffectsC++ & Digital Signal Processing & JUCE Study GroupHaving Our Waveforms and Eating Them Too! · REAPER Real-Time Audio EffectsWhat Else Can JSJSFX Do? · REAPER Real-Time Audio EffectsREAPER Extensions in Rust and More with Benjamin “helgoboss” Klum!A Dramatic Reading of Other JSFX with Scrolling Displays · REAPER Real-Time Audio EffectsParameters & Stuff… · REAPER Real-Time Audio Effects (JSFX)Minimum Gain Difference in Automixer for Video · REAPER Real-Time Audio Effects (JSFX)Advent of Code · Day 14
Leandro Facchinetti |

Fixing a Flickering Waveform · REAPER Real-Time Audio Effects

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER