![]() |
【转帖】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 |
所有的时间均为北京时间。 现在的时间是 12:17 PM. |