huww98/TimeChart

Question, render to texture

temaivanoff opened this issue · 2 comments

Hi, I'm studying the code and see the rendering is happening through the texture. Why ? what's the secret? productivity? why not attribute?

huww98 commented

I used to use attributes to store datapoints. But every vertex can only access its own attribute, not the adjacent ones. That results in a lot of duplicated data.

See a4cfbfa for the transition from attribute to texture.

huww98 commented

In summary, I use texture in order to:

  • cut down GPU memory usage
  • support dynamic switch of chart type