查看单个帖子
旧 2009-05-05, 11:42 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】gsmodel with many small model space entities

gsmodel with many small model space entities
gsmodel with many small model space entities
hello,
i have found gsmodel to be a crucial feature when working with large, complex drawings. it does, unfortunately, also have some drawbacks.
recently i have come across drawings which contains a large number of small model space entities (e.g 80 000 entities), and this takes a long time to load when using gsmodel. as far as i can see (from looking at the source), a "gsmetafile" will be created for each model space object. for the opengl device this could mean creating several thousand display lists, each containing only a single line.
is there any way to disable gsmodel for specific entities/entity types (e.g oddbline)? if yes, can i do it myself by rewriting the device code, or does it have to be done in the library itself?
you control what is cached. you may create not gl lists in some cases, but store geometry. e.g. you may ask device context for currentdrawable(), (it is current oddbentity in case of dwg rendering)
vladimir
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)