几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量

几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 (http://www.dimcax.com/hust/index.php)
-   DirectDWG (http://www.dimcax.com/hust/forumdisplay.php?f=89)
-   -   【转帖】slower Than Autocad (http://www.dimcax.com/hust/showthread.php?t=18615)

yang686526 2009-05-07 04:05 PM

【转帖】slower Than Autocad
 
slower than autocad
slower than autocad
dear sir
i have a dwg that have many inserts included that reference to the same block.maybe have 1500 inserts.
when update the screen,autocad is faster than opendwg sdk.(maybe 10 sec vs 2 min)
i think that autocad vectorize one time and draw 1500 times,but sdk vectorize 1500 times and draw 1500 times.
how can i speed up the speed of drawing ?
thank's
hi,
please provide us with such dwg file and then we'll look into the problem and try to solve it.
hello mr.heaven,
i received your file, and have looked into the problem.
unfortunately, i can't say something concrete right now. performance on this file is low because of overall time and memory consuming of rendering code, we'll try to find and eliminate bottlenecks. i doubt you could improve rendering speed yourself, at least, i can't give you any advise how to do it. we'll inform you about any progress on this issue.
1. call _set_sbh_threshold(1016); at the begining of your application, it optimizes memory usage and could increase performance up to twice.
2. winopengl.gs is especially bad with your file, so use windirectx.gs or wingdi.gs renderer.
thank's
thank you very much.
i'll waiting for your anser.
thank's


所有的时间均为北京时间。 现在的时间是 11:33 PM.