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