几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量  


返回   几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 » 仿射空间:CAX软件开发(三)二次开发与程序设计 » CAD二次开发 » AutoCAD二次开发 » DirectDWG
用户名
密码
注册 帮助 会员 日历 银行 搜索 今日新帖 标记论坛为已读


 
 
主题工具 搜索本主题 显示模式
旧 2009-05-05, 10:43 AM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】extremely slow rendering.... why please help me111

extremely slow rendering.... why??? please help me!!!
extremely slow rendering.... why??? please help me!!!
hi everyone,
please find attached a dwg file.
my app (based from odamfcapp), compiled in release mode, needs about 7.7 sec to render it using directx 9.0 on a windows vista ultimate ibm thinkpad t61p...
the problem is that this dwg is really small compared to the dwg i need to handle...
is there a way to improve this performance ????
thank you very much, any help will be very appreciated !!
attached files

slow rendering
hi,
i test your file rendering on my p4 2.80ghz, 1gb ram, ati radeon 9200.
results of file rendering for opengl && directx vectorizers:
on regen all: near 1 sec
regen time: near 0.004 sec
i think problem in your video card drivers (not installed, or incorrectly works with directx). so directx forces rendering in software mode (slow rendering using cpu instead video acceleration).
test your hardware using 3d benchmark tests.
thank you very much for your time
i'll try as you suggest...
by the way, do i need so set any flags in opendwg directx driver to speed up it's performances ?
thanks again,
carlo.

slow rendering
hi,
you can experiment only with doublebuffer property of opendwg directx device, but i think the real problem is in your winvista video hardware device driver or video card hardware driver not support d24s8 buffer format.
you can test performance using any realtime application, that using directx for rendering (you can download performance tests on video card developer site). if rendering speed too slow - reinstall video card driver or make adjustments in video card configurator. this may be different for various video cards. if rendering speed in other applications is normal - then problem in opendwg directx device.
please, test performance in other directx applications first, and tell here on the results of tests.
ok, i'll try to test the video driver.
i forgot to mention it:
it's a nvidia quadro fx 570m running at 1920x1200 dpi

hi again, i tested the app also on a windows xp desktop using a ati radeon x1950 pro, and the behaviour is almost the same
this machine is the one i usually use to play games as halo2 and others, and the xp dxdiag diagnostic tool on this machine dosen't report any problem.
in my first post i forgot one detail: the slow behaviour happens only when i whant to display my dwg in "gouraud shaded" mode, "flat shaded" mode or "hidden lines" mode.
when i display my drawing in wireframe no problem is shown, the rendering is fast enough.
thanks again for your help !!!

slow rendering
hi,
yes, now i see performance problems.
the main problem in modelergeometry->breprenderer performance (3d solids). we have plans to make profiling and optimization of our rendering code in future. but currently it is slow in many cases.
ok, anyway, is there any way to improve the performance a bit ?
thank you for your answers

slow rendering
hi,
you can increase performance by reducing the quality of 3d solids triangulation, using modelerproperties.
i have found two posts about modelerproperties:
thank you very much!!!
hello,
at first thank you for the sample file! this is not pc performance problem. this is regression in our code. fix will be availlabe with next release.
your file containes 4 blocks and drawing containes 6-7 inserts of these blocks. each block includes some 3dsolids. some years ago i implemented caching mechanism for shaded rendering mode - each 3dsolid stores tringulation results and recalcalcute cache only if triangulation params were changed. for your sample each 3dsolid triangulated cache should be recalculated only once at first rendering. and this cache should be used on all second time 3dsolid rendering - full drawing update (zoom+\-) or at next insert block rendering. cache mechanism was disabled all the time due to regression and each 3dsolid rendering call triangulation code.
this is my results after fix...
rendering time for debug mode
first \ second rendering
bug 42s\42s
fix 6s\3s
rendering time for release mode
first \ second rendering
bug 10.5s\10.5s
fix 1.7s\0.09s
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
 


主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

vB 代码开启
[IMG]代码开启
HTML代码关闭

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】ddx1.06 rendering beta - rendering of fonts yang686526 DirectDWG 0 2009-05-04 07:08 PM
【转帖】arabic text rendering yang686526 DirectDWG 0 2009-05-04 04:07 PM
【转帖】slow performance with my dual xeon quad cores yang686526 SolidWorks二次开发 0 2009-04-13 02:22 PM


所有的时间均为北京时间。 现在的时间是 01:48 PM.


于2004年创办,几何尺寸与公差论坛"致力于产品几何量公差标准GD&T | GPS研究/CAD设计/CAM加工/CMM测量"。免责声明:论坛严禁发布色情反动言论及有关违反国家法律法规内容!情节严重者提供其IP,并配合相关部门进行严厉查处,若內容有涉及侵权,请立即联系我们QQ:44671734。注:此论坛须管理员验证方可发帖。
沪ICP备06057009号-2
更多