Open Munken opened 10 years ago
Here is some code that relies entirely on the pisces pipeline to render the chart. Please note that it is note complete. Needs scaling, translation, rotation and other stuff.
Have you found that this gives better performance?
Before it would scroll heavily when scrolling a tab that contained a chart. With caching it as an image scrolling is fluent.
The Pisces canvas solves the rest
As mentioned early some charts are quite slow to render. Some of this can be solved by rendering to an image an then just have CN1 draw this.
Currently I use this code to achieve it:
There should however be a way to invalidate the cache or it should detect automatically.