cancel
Showing results for 
Search instead for 
Did you mean: 

Circular buffer support for Dynamic Bitmap

JHyka.1
Associate

Applications such as a spectrum “waterfall�? display involve a moving image where old rasterline data is pushed down for a new line at the top. I tried direct framebuffer access and other approaches without success. (Too many data movements, too slow)

I want to try a circular buffer approach to minimize data movement, with the challenge of then having to split image refresh into two portions to track the moving location of the image in the buffer and to manage the wraparound.

is it feasible to create a custom Widget that can manipulate Buffer pointers ‘on the fly’ (ie within the same frame refresh) when redrawing a dynamic bitmap?

2 REPLIES 2
JHyka.1
Associate

Solved!

the ScrollableContainer with a dynamic bitmap twice the size for spectrum data proved to be a perfect solution. Not quite a circular buffer solution but almost as efficient and out-of-the-box. Very smooth scrolling with very little code.

not 100% sure I understood what you tried to do but glad it works 😅