|
高级会员
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
|
【转帖】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
|