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.

Confused and frustrated with performance

Started by Dempsey, November 05, 2007, 07:09:57 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Dempsey

I am using mainly 17.2 because the dimensions in 18.0 are no good. This is the drawing I have been working on today: http://www.van-vliet.org/nightstand-dresser-drawing12.zip. There are some very strange performance behaviors I have observed.

In my drawing towards the bottom you see a solid with a curved front. The item is called "bottom front stretcher".

  • When I select the bottom front stretcher by clicking on it, it takes 10 to 15 seconds before the whole solid is selected (like in slow motion) and another 5 seconds or more before the handle is shown and I can continue.
  • When I select it with a selection rectangle (with or without Ctrl) it takes 1 to 2 seconds to get completely selected.
  • When I select the whole drawing with Ctrl-A the selection is done within a few seconds too.
  • When I hide layer 4 by clicking on the "bulb" icon of the layer pull-down menu it takes more than 4 minutes to complete.
  • When I hide layer 4 by clicking on the "bulb" icon in the layer option menu it hides layer 4 within a second or so.

In other words, there are significant performance differences between the same functionality depending on from where it is activated. For someone like me with a programming background it points to serious programming errors. Perhaps it is more obvious on my PC, but I would appreciate if someone can have a look at my drawing and confirm similar behavior.

BTW, copying (N) or moving (M) a solid in this drawing is virtually impossible. It takes 5 to 10 seconds before the 3D curser follows the mouse movement, but by then the mouse is already somewhere else.

My PC is not the fastest, but then my drawings are normally 0.5 to 1 MB in file size:

  • ASUS motherboard, 1 GHz Pentium III
  • ASUS 7700, 64 MB GeForce2 GTS video, with latest NVidia driver for that card
  • 20" Viewsonic 1600x1200 monitor
  • 250 GB harddrive, 7200 rpm
  • Windows XP, SR2
Dempsey

DrollTroll

You're working in Hidden Line mode. You will have much better performance if you do most of your work in wireframe mode and only switch to shaded or hidden line mode when you absolutely have to.
25 years with DesignCAD

Dr PR

I opened your drawing with V15.3 on a 1.8 GHz XP machine. With the pull-down layers menu it took 4 minutes and 4 seconds to disable layer 4, and 4 minutes and 6 seconds to enable it again - the same time considering I was looking at my watch to time the event. From the Layers dialog box (L) it took about 1-2 seconds to enable and disable layer 4. Likewise, it took several minutes to disable layer 4 in a a quick shaded or Gouraud shaded drawing using the pull down layers menu, but less than a second to enable/disable from the Layers dialog box.

I have seen similar problems for years, going back at least to V15 and probably before that. This definitely is a bug.

DT is correct that selection/deselection/delete functions may be MUCH slower in shaded or hidden line mode. My experience is that hidden line mode is much slower than shaded mode, especially quick shade. I never use hidden line mode, but use shading to check my wireframe drawings.

You should ALWAYS switch to wireframe before enabling or disabling layers or deleting objects. In a large drawing it may take minutes to disable a shaded layer from the Layer dialog box, but only a second or two if wire frame is active before the Layers dialog is opened. I actually timed the operation once with a 20+ Mbyte drawing and it took about 15 minutes for the layer disable operation to complete on a 1.4 GHz XP machine!

If you make the mistake of disabling a layer while the drawing is shaded or hidden line about the only recourse is CTRL-ALT-DEL.

Also, pointing at an object and left clicking will select the object much faster than right clicking to gravity snap to the object. Gravity snap requires searching the entire drawing list to find the closest "snappable" object. Direct point and (left) click just selects whatever is under the cursor. Likewise, the selection rectangle is a direct select of whatever is enclosed in the rectangle and does not require a full search of the drawing element list. Ditto Select All.

At one time in the distant past I discovered that the location of the dialog box affected redraw speed. If any of the elements on the layer that was being enabled/disabled were under a menu or dialog box the redraw took much longer. This no longer seems to be the case. I scrolled your drawing down so no part of it was under the pull down menu, and it still took about four minutes to disable layer 4.

The really odd thing about this is that it may take only a fraction of a second to quick shade all of the enabled layers in an entire drawing, but many minutes to regenerate the shaded drawing when a layer is enabled/disabled. It is as if the layers function is pondering whether each individual element should or should not be displayed, while the shading dialog just shades everything on enabled layers. They would improve program speed a lot if they just redrew the screen and then redrew the menu/dialog box over that.
DesignCAD user since 1987

Dempsey

PR, at least you confirmed my observations. I understand that the selection rectangle is a direct select, which is fast. Yet, direct point and left click is in my opinion also a direct select, but that one goes into slow motion. Have you tried to time that too?

DT, thanks for the speed tip of using wire frame. In all truth, I seldom use wire frame as I cannot see the forest through the trees; or is that the other way around? Anymay, I put my drawing in wire frame mode and did a direct point and left click on my "bottom front stretcher" (see top of topic), and it is as slow as in hidden line mode (18.0). Also in wire frame mode I hide layer 4 and showed layer 4 using the layer pull-down menu (menu does not interfere with drawing) and it is almost as slow as in hidden mode. In other words, wire frame mode is not the answer -- at least not for me --. There is a fundamental problem somewhere, and based on PR's test, the problem has been there at least since 15.3.

My gut feeling: a complete redraw is done after every little facet of a solid is drawn because the internal redraw flag is set.
Dempsey

DrollTroll

Sorry, I should have been clearer -- you need to turn on Wireframe in ALL views. Remember, when you select something it redraws the selected object(s) in each view, so any hidden-line views will still slow you down.

There *is* something silly going on, since with a macro I can point-select using silent mode, then regen, much faster than I can select manually.
25 years with DesignCAD

Dr PR

Dempsey,

I repeated your problem with the point and left click selection on my machine. It is very slow, even in wire frame mode.

I have seen similar delays with huge files (50 Mbytes and larger) but your file is 1.1 Mbytes, with 126 grid surface entities, 3620 planes and 33908 points. While your drawing was open I opened one of my drawings that is 9.5 Mbytes, with 30369 grid surface entities, 6519 planes and 302766 points. You would think operations Selections take only a few seconds, no matter how I do it, and even when the main window is shaded with Gouraud shading and the other windows are wire frame.

I do see the same difference in layer disable with my file as with your drawing. If I use the Layer dialog box layers turn on/off almost instantly, but from the pull-down layer menu disabling a single layer takes a very long time (I gave up after about 5 minutes and used CTRL-ALT-DEL).

I poked around in your file and tried deleting the hidden and text layers, and that did not improve things. So whatever is causing the long delays is in the outline (4) layer. I didn't see anything strange there.

****

AHA! Your main working window was full screen. I moved it and found the other three views - in hidden line mode. I changed them to wire frame and everything speeded up to "normal." Just as DT said, it was the hidden hidden line windows that were causing the problem. I had assumed that the other views were disabled - that's what I get for assuming!

For what it is worth, I ran into the slow hidden line mode problem long, long ago, and I never use it. I use the quick shade mode to check to see what all the jumble of wireframe lines mean. Quick shade really is quick, and if you have hardware acceleration enables you can rotate the drawing in almost real time.

DesignCAD user since 1987

Bob P


Dempsey

DT, yes, now I agree that wireframe is fast, provided I have the other three windows also in wireframe or closed. Secondly, I am glad that you agree that something *is* wrong. Here is the little devil speaking in me: "Will this be fixed in 18.1??? Please, please."

PR, thanks for setting me on the right track. Closing the three windows improved performance. The obvious is not always obvious, and I slammed my head for not realizing that  :-[ -- growing old has its drawbacks --. I also compared rotating. Wireframe rotation is limited only by the redraw speed. Quick shade rotation is faster and smoother than rotating in hidden line mode. With all this info I will be able to get a much better performance.

Thanks
Dempsey

DrollTroll

For those situations where you *really need* to do something in Hidden Line Mode, you can get some improvement by:
1) only enabling Hidden Lines in the view you need,
and
2) unchecking the "Hidden Lines as Dash" (V18 only), and "Display intersection lines with graphics acceleration enabled" boxes.

It will still be much slower than wireframe, but may get you by when you need it.
25 years with DesignCAD

Dr PR

As long as we are on the subject of slow operation, here are some other things to consider.

In Point Select mode with large drawings, even wireframe can bog down to a crawl if all four drawing windows are open - four times as many little squares to draw to show the location of all the points. Of course, this is true in any viewing mode. Every time you make a change to the drawing all four windows are updated.

One way to speed things up is to use the Zoom Window tool to zoom to a blank part of the three (top, front, side) smaller windows so there is nothing to display. When you need to see those views just Fit to Window (CTRL W) in the desired view.

Another way is to close windows that you don't need at the moment by clicking the "X" at the upper right corner of the window. This solves the multiple window redraw delay problem. OK, so now how do you get the windows back when you need them? Window/DesignCAD Tile will restore all windows and the "zoom" toolbox at the right side of the main window. The wireframe/hidden line/shading mode last used for each window will be used, but all windows will be rotated back to the "default" orientation and the main window will be in perspective view.

Window/DesignCAD View is useful to put you back to a familiar view when you are working in wireframe mode and can no longer tell up from down and back from front.
DesignCAD user since 1987