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.

Screen regeneration

Started by Shipmodeler, November 27, 2011, 09:27:52 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Shipmodeler

Some of the 3D drawings I have been doing lately get pretty big, so I get extended periods of time for screen regeneration.  I have tried the usual stuff to speed things up such as turning off the various layers, but it sometime it still redraws, redraws, redraws.  So much so that adding all the redraw time really adds up.  I have a Dual Core Pentium processor and 2 GB of RAM.  Would adding RAM speed regeneration up enough to justify the cost?

Any help with this problem would be much appreciated.
"A man can never say he has truly lived until he has built a model ship"
Ronald Reagan

MarkX

#1
Hi Shipmodeler,


I have a dual core (probably one of the earlier ones ... have to check) and 4Gig.

Do you have an example to post? We could compare render times. Unless of course you're talking 20 minutes render, in which case ... good luck!

My guess is that DC doesn't use the 2nd core. I've noticed that rendering is slow, but I'm not sure if its slower than on other products with better name recognition.

Mark

Edit: I seem to recall from other posts that DC doesn't use more than 1G. Assuming 40% elbow room, you might check your task manager to see that 1.4 gigs is actually available. Browsers with windows open can take a big chunk of memory.

Shipmodeler

Since you have 2GB or RAM, have you had nay problems with large drawing redraw time.  What you have doubles mine.  Just curious.
"A man can never say he has truly lived until he has built a model ship"
Ronald Reagan

Dr PR

Shipmodeler,

How big is "pretty big?" I have files ranging up to 375 Mbytes, and they take about an hour and a half to render - the first time.

I normally use Gouraud shading with hardware acceleration enabled. When I first open a drawing and the drawing is shaded the first time the rendering process can take a long time. For example, I am working on a 117 Mbyte drawing, and the first shading takes about half an hour (I haven't timed it precisely). After that, if I edit the drawing in Wireframe and render again with Gouraud it takes less than a minute to generate the shading. View rotation is relatively fast, but a bit jerky, while shaded in Gouraud with hardware acceleration enabled.

I have found no way to speed up the shading process other than building a faster machine.

****

Here are some numbers I accumulated from my two machines using the Task Manager Performance tab:

XP Pro SP3
CPU - Intel Pentium 4, 3 GHz, 1 core with hyperthreading (2 threads max)
Memory 1 GByte system RAM
Front Side Bus 867 MHz
Video card - nVidia GeForce FX5700LE

Memory usage (megabytes):
XP only (with background networking, etc.)  424
DesignCAD V21 loaded, no drawing              490
With 17.3 Mbyte drawing loaded wireframe   558
With Gouraud shading w/ hardware accel.    576
With Phong shading plus shadows (2048)     596

DesignCAD V21 uses 66 Mbytes of RAM
Loading a 17.3 Mbyte drawing uses another 68 Mbytes
Gouraud shading uses another 18 Mbytes - this is permanent until the file is closed
Phong shading with shadows uses another 20 Mbytes, but this is only temporary until the shaded image is drawn. Then memory usage drops back to 576 Mbytes.

For a 17.3 Mbyte drawing you need 106 Mbytes of free RAM after DesignCAD starts up.

Vista 64 Home Premium SP1
CPU - Intel Core 2 6600, 2.4 GHz, 2 cores, 2 threads
Memory 4 Gbytes system RAM
Front Side Bus 1 GHz
Video card - nVidia GeForce 8800GTS

Memory usage (megabytes):
Vista only (with no networking, etc.)           693
DesignCAD V21 loaded, no drawing              763
With 17.3 Mbyte drawing loaded wireframe   829
With Gouraud shading w/ hardware accel.    845
With Gouraud shading w/o hardware accel.   870
With Phong shading plus shadows (2048)      872

DesignCAD V21 uses 70 Mbytes of RAM
Loading a 17.3 Mbyte drawing uses another 66 Mbytes
Gouraud shading uses another 16 Mbytes - this is permanent until the file is closed
Gouraud w/o hardware acceleration temporarily uses another 25 mbytes RAM until the image is generated. The RAM usage drops to 845 Mbytes.
Phong shading with shadows uses another 27 Mbytes, but this is only temporary until the shaded image is drawn. Then memory usage drops back to 845 Mbytes.

For a 17.3 Mbyte drawing you need 109 Mbytes of free RAM after DesignCAD starts up.

****

You can use these numbers (or run the tests yourself) to evaluate your own machine's performance.

Total RAM is not a speed factor in either machine, although on the 1 Gbyte RAM XP machine DesignCAD crashes with a drawing larger than about 35 Mbytes. On the Vista machine the program crashes with files larger than 375 Mbytes. I think the program can address no more than 1 Gbyte RAM, but I do not know this for sure. If true, adding RAM beyond about 2 Gbytes will not have any effect.

It is interesting that the 2.4 GHz 64 bit Vista machine is more than 1.5 times as fast as the 3.0 GHz 32 bit XP machine. The wider data bus is the main factor, but the faster Front Side Bus (CPU to RAM connection) also helps. Both machines have RAM that is fast enough to operate at the FSB speed. The Vista machine's nVidia 8800GTS card was rated (a few years ago) as the fastest video card for OpenGL programs like DesignCAD so this helps a bit too (I didn't know this when I bought it, I was just lucky).


****

The highest CPU usage reported by Task Manager on either machine was about 58%. In both systems Task Manager showed two windows for CPUs, definitely just two threads on the single core XP machine, but I suspect it was the same for the Vista dual core machine as well - only one core is being used. In both cases the performance graph are different for the two threads, so maybe one is the operating system and the other is DesignCAD. This is not a performance enhancement, because both threads share the same core. It is a security enhancement.

Software must be designed specifically to use more than one core, and it is a very expensive and difficult task. My company has written  multiprocessor software to use 16 separate CPUs, and I can tell you that multiprocessor coding is not something that the ordinary programmer knows anything about. It is a certainty that the code for DesignCAD cannot use multiple processors. I know of no off-the-shelf applications that were designed to use multiple cores.

The operating system must be designed to use multiple cores, and it looks like neither XP or Vista can do this. I do not know about Windows 7. If the OS can use multiple cores it could assign individual single core programs to operate on specific cores, allowing multiple programs to operate simultaneously. This would be a performance enhancement, but not as much as you might imagine. Every time two programs need to access common resources, such as RAM, disk drives, keyboard or display, one must stop and wait for the other.

Phil
DesignCAD user since 1987

MarkX

Quote from: Shipmodeler on November 27, 2011, 02:01:55 PM
Since you have 2GB or RAM, have you had nay problems with large drawing redraw time.  What you have doubles mine.  Just curious.
I have a 2.5M and a 1.5m model. They take under a minute to render, I think (I'll have to time it more closely) -- in Phong if I recall. Still experimenting with rendering.

Shipmodeler

#5
Then it must be a problem with my machine, although I suspect it more to do with DC3D v20.  The drawing is only a little more than 8MB, yet when I try to refresh all windows to fit the screens, it starts, then briefly blinks away, then starts again every second or two for five or six minutes at a time until the drawing is refreshed.

I'm not sure what the problem is since DRPR has much larger drawings.  The initial layout (when I first open the drawing) is very fast.  The problem occurs after I have been working for a while.  Then it's best to shut down the program and restart.

Anyone got any suggestions how to fix this?
"A man can never say he has truly lived until he has built a model ship"
Ronald Reagan

MarkX

Quote from: Shipmodeler on November 27, 2011, 05:56:19 PM
Then it must be a problem with my machine, although I suspect it more to do with DC3D v20.  The drawing is only a little more than 8MB, yet when I try to refresh all windows to fit the screens, it starts, then briefly blinks away, then starts again every second or two for five or six minutes at a time until the drawing is refreshed.

I'm not sure what the problem is since DRPR has much larger drawings.  The initial layout (when I first open the drawing) is very fast.  The problem occurs after I have been working for a while.  Then it's best to shut down the program and restart.

Anyone got any suggestions how to fix this?
Do you have an anti-virus program running?

Rob S

#7
Try the pocket watch sample 3D drawing as a benchmark

On my win 7 laptop, which is not particularly fast on my speedtest macro, this drawing takes about 15 seconds the first time, and after that it takes about 5 seconds to render the main window in gouraud with graphics acceleration enabled, and similarly about 5 seconds using phong.
User since forever

Shipmodeler

I do have an anti-virus program activated.
"A man can never say he has truly lived until he has built a model ship"
Ronald Reagan

MarkX

Quote from: Shipmodeler on November 27, 2011, 07:28:59 PM
I do have an anti-virus program activated.
You might try disabling it.  I'm pretty sure DC generates file fragments as it works -- if your AV locks these up in order to check them for viruses, that might cause stop/go slow-downs. Worth a try, anyways.

Mark

Shipmodeler

"Try the pocket watch sample 3D drawing as a benchmark"

I don't have the pocket watch, but pulled up the MLRS drawing which loaded in about 5 seconds, then blinked away.  I hit refresh and it popped up.
"A man can never say he has truly lived until he has built a model ship"
Ronald Reagan

MarkX

Quote from: Rob S on November 27, 2011, 06:37:26 PM
Try the pocket watch sample 3D drawing as a benchmark

On my win 7 laptop, which is not particularly fast on my speedtest macro, this drawing takes about 15 seconds the first time, and after that it takes about 5 seconds to render the main window in gouraud with graphics acceleration enabled, and similarly about 5 seconds using phong.
I get about the same time as you, but I sure hope this wasn't actually done in DC. Look at layer #2. Its criss-crossed with ghost lines. You could hide most of these, but two of these go right across the circular cut-away in the middle, resulting in an enclosure that should not be there. I don't know how you would fix that. Examples should impress, but this one makes me worry about the capabilities of DC (which is why I'm hoping it was done in something else and imported poorly).

Mark

Rob S


This example was drawn years ago in a much earlier version of Designcad, so that may be the cause of some of these issues.

At the time, it was quite amazing.  DCAD has come a long way since then.
User since forever

Dr PR

Shipmodeler,

Here is the pocket watch file. We often use it when debugging the program. It was created long, long ago and far, far away, in a version from the distant past. Newer versions have fixed some of the problems you can see in the file.

What you describe seems to be unique to your system, since no one else is seeing the same symptoms.

First, update your video drivers! Even if you think you don't need to! This sounds like a driver problem. What type video card are you using?

DesignCAD does have a lot of display problems, mostly minor and just annoying at times, but they do add up and increase the delay of regenerating the view.

1. If you have all four windows open, and they are all four regenerated (when you fit all to windows, for example) it will take four times as long to refresh the main window view. When working with large files I usually close all but the main window.

2. The program often redraws each window two (or more) times. This doubles display regeneration time - 8X if all four windows are open.

3. The program often regenerates all four windows when the main window is shaded or switched to wireframe, even if the other three are just wireframe. This extra regeneration is totally unnecessary, and, with the double display mentioned above, causes main window display regeneration to take eight times as long as necessary.

4. If you are working in Point Select mode and have something selected, after all of the multiple redraws of 1 and 2 above, all of the little boxes around the points are drawn (twice). This can more than double display refresh time. In association with 1 and 2 above this can make main window display take something like 16 to 24 times longer than necessary.

5. When you rotate the view DesignCAD redraws the screen three times for each motion. First it redraws the image as it was before rotating, then it redraws for a rotation increment, and then it redraws a third time exactly like the second. Move the mouse again and it redraws three more times. Rotating large drawing is a test of your patience!

****

These problems have been reported for years now, and we must hope that after all of the AutoCrud compatability issues have been solved some programming time will be used to correct the rather lengthy list of display issues.

Phil
DesignCAD user since 1987

paulerens

And do not forget to close the info box!