In our application the user can set the line size of each diagram at runtime. We noticed that setting linesizes > 1 resulted in much higher memory usage.
I added my sample code which creates a polar diagram with one point line series with 150.000 points and alternates the linesize between 1 and 2 every two seconds.
Memory consumption is about 300-400 MB for linesize = 1
and 600-900 MB with linesize = 2.
So far the values stay consistent after 30 minutes, so I don't think there's a memory leak.
Is there a technical explanation why larger linesizes result in such memory requirements?
ViewPolar - linesize and memory usage
Moderator: Queue Moderators
ViewPolar - linesize and memory usage
- Attachments
-
- AL_Polar_Linesize.zip
- (14.54 KiB) Downloaded 487 times
- ArctionPasi
- Posts: 1367
- Joined: Tue Mar 26, 2013 10:57 pm
- Location: Finland
- Contact:
Re: ViewPolar - linesize and memory usage
When using LineWidth = 1, just the line end points are calculated and given to GPU.
When LineWidth > 1, the lines have to triangulated (tesselated) in LightningChart side and given as a little triangles for GPU. Memory required for that is many times larger than with line width of 1.
When LineWidth > 1, the lines have to triangulated (tesselated) in LightningChart side and given as a little triangles for GPU. Memory required for that is many times larger than with line width of 1.
LightningChart Support Team, PT