查看单个帖子
旧 2009-05-06, 09:55 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】performance problems when selecting and highlighting objects

performance problems when selecting and highlighting objects
performance problems when selecting and highlighting objects.
hello!
we are using oddbselectionset::select() to select and highlight objects on the attached drawing. this method works ok but next when i use dolly/zoom on active view and then call update() on odgsdeviceptr, the graphics is updated but very, very slowly.
this can be verified with the odamfcapp too:
-start odamfcapp
-load attached dwg (acad2004 format)
-use wingdi with geometry cache enabled
-zoom to some visible entity and select it -> it takes many seconds to select the entity, this wasn't the case with v.1.14 library
-then might try to select another object and try to zoom -> again everything happens really slow, cpu load goes to 100% for a long time.
the problem library version we are now using is the v.2.42. the v.1.14 we used didn't have this performance problem.
it would be very nice if someone could take a look at this drawing to see if there is something that could be done.
attached files
using selection in 2.4 causes full screen update, because partial regeneration was not supported. in 2.5 it should be faster. (try the beta version to check)
in 2.4 you may avoid this problem by just not using built-in selection, and rendering overlay graphics, like in earlier versions.
vladimir
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)