News:

Please note new Forum URL: forum.designcad.com

Main Menu
DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Large file information

Started by Dr PR, August 12, 2014, 03:03:24 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Rob S

I see the problem.  Your boat is way too small and simple.

You need to draw a much bigger boat, or get even more instant recipies!!!

We'd really hate for Designcad's improved performance to be the cause of you starving to death.
User since forever

bdeck

Quote from: Dr PR on August 12, 2014, 03:03:24 PM
When I first rendered it with Gouraud (graphics acceleration enabled) it took 61 minutes to produce the first image on the screen.  DesignCAD has to calculate all of the surface normals (about 850,000), colors, shadow masks, etc. before an image can be produced. After that it takes about 11 seconds to generate each new Gouraud image.

Hi Dr PR,
It seems to me, then, that an option to save surface normals with the dcd file (or in a separate file) would be a reasonable feature to request (even for much smaller files)

BD


Dr PR

#17
BD,

Way ahead of you. I requested that some time back.

For small files the recalculation every time the file is first shaded isn't a problem. For example, the  6.4 Mbyte file for the Mk 6 personnel boat renders the first time in about two seconds. That's a fairly complex drawing.

Here is a comparison of rendering times for a range of file sizes. Only one window (main) was open and maximized. Gouraud shading with graphics acceleration enabled, Red SDK off. V23.1, Win 7 Pro 64. Total rendering time in seconds is given, plus the seconds per megabyte and seconds per surface normal (GSE+P).
GSE = grid surface elements, P = planes

File size           Seconds    GSE+P    Sec/Mbyte   Sec/GSE+P
2.8 Mbytes             0.88     8,368        0.31        0.00011
6.4 Mbytes             1.98   21,683        0.33        0.00009
17.3 Mbytes          8.7      49,220        0.50        0.00018
46.4 Mbytes       165      179,522        3.59        0.00092
159.5 Mbytes     879      431,738        5.51        0.00204
283.9 Mbytes   3660      854,429      12.89        0.00428

Clearly, rendering times are not proportional to file size or the number of polyons (normals). See the attached graph. The blue line is measured rendering times. The green line is an exponential curve, for reference. Notice that rendering times start increasing quickly for files over about 25 Mbytes, and even faster still for files over 200 Mbytes. In general, rendering times seem to increase approximately exponentially with file size.

The ratio of grid surface elements to planes is not the same in these drawings - larger drawings tend to have more grid surface elements. I wondered if the relative amount of grids and planes might effect rendering times. I divided the rendering times by the product of file size (Mbytes) times the ratio of grid surface elements to planes (GSE/P).

File size            Seconds         GSE      Planes    GSE/P   Sec/(File Size*GSE/P)
2.8 Mbytes              0.88      3,970       4,398    0.902            0.348
6.4 Mbytes              1.98      8,405     13,278    0.633            0.489
17.3 Mbytes           8.7       34,306     14,914    2.300            0.219
46.4 Mbytes        165        104,841    74,681    1.404            2.533
159.5 Mbytes      879        198,545  233,193    0.851            6.476
283.9 Mbytes    3660        461,464  392,965    1.174          10.981

The file composition of grids and planes may have an effect upon rendering times. The 17 Mbyte file has a larger grid to plane ratio, and seems to take less time to render than expected, while the 46 Mbyte file has a larger proportion of planes and takes a longer time to render than expected. However, in all cases larger files take longer to render per Megabyte of file size.

For this reason it would be nice to save the surface normals with large drawings so the first render times would be much shorter when the files are opened. Files sizes would increase, along with file load/save times, but that would be a small price to pay for saving an hour or more of rendering time every time the drawing is opened.

Phil

Note: I really don't now what a "grid surface element" is. For these calculations I am assuming a grid surface element is a rectangular facet that generates a surface normal.  However, it might be a triangular half of a rectangular facet (2X the number of facets), or maybe just the number of points in the grid. In any case, the larger the grid the larger the file size and the more surface normals that must be calculated.
DesignCAD user since 1987

bdeck

Phil,

Wow,  thanks for the data.

Have you tried this as a  possible way to avoid those delays?

http://forum.designcad.com/index.php?topic=4501.msg35845#msg35845

Seems you might be able to keep the file open perpetually in a virtual machine, even when powered off.

Just make periodic saves.

BD

Dr PR

BD,

I have avoided virtual machines for two reasons. Mainly I don't want the performance reduction, but I also don't know much about them and don't have the time to really dig into them and learn enough to be comfortable with them.

Phil
DesignCAD user since 1987

prl

Quote from: Dr PR on August 21, 2014, 10:31:46 AM
but I also don't know much about them and don't have the time to really dig into them and learn enough to be comfortable with them.

Phil, your point about performance reduction is valid, but I'm guessing that once you became comfortable with them, you would find them intriguing.   You could have a real computer that never accesses the internet but one of the virtual machines it runs does.  Or you could demo software in a virtual machine, try it out, and then reset the virtual machine to just prior to installing the demo software in case it is garbage.  Lots of interesting uses.

bdeck

I have to believe that somewhere someone has created a restore-machine-state utility for Windows.

Heck, every windows laptop has a third-rate version of such a utility in its hibernate/restore feature.

Anyone know of one ?

Dr PR

prl,

Some of the programmers at work have virtual machines running inside virtual machines, mixing just about every OS you have heard of and a few you haven't. So I have access to information about them. I just haven't bothered - too many other things to do and not enough time.

Phil
DesignCAD user since 1987

bdeck

#23
Phil,

I just now added the hibernate option to the Windows shutdown listbox on my 10-year old desktop PC by using Start/Settings/ControlPanel/PowerOptions/Hibernate.

A smallish 3d rendered file active in DC at the time of the shutdown was just fine when the session restored.

I had never taken the time to do that before this tread prompted me to.

bd


prl

Quote from: Dr PR on August 21, 2014, 08:55:12 PM
have virtual machines running inside virtual machines, mixing just about every OS you have heard of

I've never gone that far, afraid I'll run into myself in the parallel universe computing continuum thereby causing the big bang again or maybe just the big blue screen of death.  But yes, it can get deep.  :)

Dr PR

BD,

I normally set my Win 7 machine to go to deep sleep after a long idle period. Pressing a key brings it back to life, but I have to move the cursor to restore the screen display. Normally this restarts things OK, including DesignCAD.

However, I have to turn off sleep if DesignCAD is doing a long render - like the 61 minute render mentioned earlier. The first time I started this rendering the machine shut down. When I restarted it DesignCAD was dead in the water - the title bar said "not responding." I don't know if it resumed creating the rendered image or not because there is no tell-tale to show the program is working. The status bar, menu bars and toolboxes were all empty. I waited about half an hour and nothing happened, so I killed the program and restarted the process.

Of course I only remember to turn off sleep mode after a long render is screwed up.

Phil
DesignCAD user since 1987