![]() |
【转帖】poor rendering performances
poor rendering performances
poor rendering performances i am currently developing an application in which i need to display the dwg file the user is working on. though this rendering is not the purpose of the application, it is one of its main features. i tried to use the 鈥淓xgsopenglgenericdevice鈥?class provided with dwgdirect 1.12.04 (the compiler is visual c++ 6.0). unfortunately the rendering performances become quickly very poor when file size increase. for example it takes 90s to display a 800ko file (vien_version cile.dwg), on my 2.80ghz pentium 4 with 512mo ram (the time for the update() call only) . however rendering time seems not directly related to the size of the file as another file 4 times bigger (vien_version architecte.dwg) is rendered in 40s (but with an assertion fired). i tried to open the same files with odamfcapp. they are displayed a bit less slowly 30s and 17s respectively, but this is still far too slow to be of any use. is there any obvious explanation for the difference between the rendering time in my application (using 鈥淓xgsopenglgenericdevice鈥?) and in odamfcapp ? is there any way to increase performances ? (autocad opens of course both files in a flash) regards. ps: a quick word about the assertion i mentioned earlier (even if it鈥檚 not of concern to me). when rendering the vien_version architecte.dwg file the following assertion is fired (both by the code i included in my application and by odamfcapp) : assertion failed: invalid execution. file: c:\opendwg\dd1.12\source\ge\gehatch.cpp line: 1830 odgsopenglvectorizedevice::update temps = 39 s, clocks: 39844 temps = 39 s, clocks: 39844 (snapshots of the windows displayed by odamfcapp in the zip file) but the file is displayed nevertheless. (i could not attach it, maybe due to a size limit : 1.3 mo zipped) attached files my computer is very similar to yours (2.66g - 512m) my rendering time for your file with opengl device: odamfcapp debug 90s odamfcapp release less than 4s check libraries you are linking with. sergey slezkin i have downloaded the release dll. that鈥檚 much better indeed. thanks |
所有的时间均为北京时间。 现在的时间是 01:13 PM. |