Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Take CPU 100% (Read 3729 times)
suwit
Guest


Take CPU 100%
Aug 20th, 2005 at 3:43pm
Print Post  
hello,
i'm using FlowChart.NET 3.2.1 and i have 2000 Tables (3x3 row:col)  and i found FlowChart.NET take CPU100% when moving a Table object.
and very slow while saving diagram to file.
take 3 minutes for 2000 nodes table.  could u please tell me why ?
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Take CPU 100%
Reply #1 - Aug 22nd, 2005 at 7:35am
Print Post  
Hello,

Regarding the delay when moving a table, with each mouse move there is a portion of the diagram invalidated which cause it to be redrawn. If auto-scrolling is enabled, the whole visible area will redraw.

So if there are a lot of these tables visible at the same time, e.g. ZoomFactor is small or if you use the Overview control, then repainting will take a lot of time. To improve the speed, try disabling most of the Overview.Enable* properties, or use a larger ZoomFactor to have less tables visible. Try also setting CellBorders to cbNone or cbSimple to skip drawing the 3D-effect frame lines.

Some other things you could try to improve drawing speed are disabling EnableStyledText if it's used, or using smaller images if using images which are scaled down to the size of a cell. If using the GDI+ graphics engine, disable it, because GDI+ does not use hardware acceleration, while the classic GDI uses it when available.

Even if there aren't a lot of tables visible at the same time when painting, the bounding rectangle of all tables are intersected with the visible area rectangle to determine whether a table should be repainted. So if the suggestions above don't help, you might have to show only parts of the data at the same time and load more data when users request it.

I hope that helps,
  Stoyan
  
Back to top
 
IP Logged
 
Stoyo
God Member
*****
Offline


MindFusion support

Posts: 13230
Joined: Jul 20th, 2005
Re: Take CPU 100%
Reply #2 - Aug 22nd, 2005 at 7:43am
Print Post  
As for the long saving time - do you display images inside the table cells ? If yes, set them to null/nothing before saving, and assign the images again when loading the diagram. The images are not shared between cells / tables, so each cell saves its own copy of the image and that takes a lot of time for 2000 or more cells.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint