Replies: 1 comment
-
In my case I probably could even use a Mesh directly. It seems that I can use Painter::add(&self, shape: impl Into<Shape>) where Shape parameter is a But the other questions still hold, in particular, does it make sense to do build a mesh and re-render it or maybe render the mesh into a image (how) and re-use it? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have implemented an app that should be able to draw a large amount of small simple objects (say, up to 40k of rectangles). The performance turned out to be surprisingly good even without much of optimizations already. So it is usable as-is. But since all rendering loop runs on single core, for the largest datasets CPU load sometimes already hits 100%. Hence I am pondering whether it make sense to implement some optimizations but wonder if those will be worth it.
I have already cached the colors calculation since the profiler had shown it takes substantial time (that made it ~10% faster).
So here are the questions:
Context::tesselate
may help. But since most of the load is in scrolling I would like to clip to visible rectangle afterwards, just before painting. Can I use a layer or an Area for that?Beta Was this translation helpful? Give feedback.
All reactions