hugofloresgarcia/kiwi

too many AudioHapticPixels

Closed this issue · 0 comments

the number of pixels in a track can be in the millions // billions depending on the zoom level set by the user and the length of the track. We don't wanna hold on to all of this data at once.

The list of pixels is displayed via a ForEach loop, wrapped in a LazyHStack.

The current data structure for the pixels is an Array.

We might need to change how we do both of these things.

What's a smart way to buffer this, provided that:

  • in app, the user seeks sequentially, meaning that there won't be random access unless the user interacts with the computer
  • the center pixel can be any random pixel in the server's collection (the user can move the cursor anywhere and we should be able to respond
  • this needs to work with the scrollview