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.

Are any of the DesignCAD versions 64 bit, and/or 2GB limit

Started by thibaultron, January 02, 2015, 03:24:42 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

thibaultron

Are any of the DesignCAD versions 64 bit? If not is there anyway to get DesignCAd to exceed the standard 32 bit application 2GB memory limit when it is used on a 64 bit OS?

Dr PR

I don't fully understand memory usage in DesignCAD, but I have learned a few things through experimentation.

1. The total amount of system RAM used by DesignCAD (as reported by Windows Task Manager) is about 1 Gbyte (2^30).

2^30 = 1.074 Gbytes
2^32 = 4.295 Gbytes

I'm not sure why DesignCAD is restricted to 1 Gbyte - whether it is a limitation of DesignCAD address variables or 32 bit Windows.

Anyone out there know for sure?

2. The  DesignCAD 1 Gbyte address space contains:

  a. Program and program variables.

  b. Drawing data ( the drawing list, or list of objects in the drawing.

  c. A backup copy of the drawing. This isn't actually a full copy of the drawing, because you can backup many times, and there isn't memory space to hold many copies of a large drawing. This backup information is generated only after the first edit of a recently loaded drawing.

  d. Surface normals used for creating shaded drawings. This information isn't created until the first shading operation after the drawing is created or loaded.

  e. Shadow map. This information isn't created until the first shading operation that uses shadows.

All of this has to fit within the 1 Gbyte address space.

****

After loading a file the program uses an additional amount of RAM equal to about 2.5 times the disk file size.

Then after rendering with Gouraud the amount of RAM used increases about 1.5 times.

So, to shade a drawing you must have about 3.75 times as much unused RAM in DesignCAD's 1 Gbyte work space as the file size on disk.

With V24.0 using 36.12 Mbytes for the program, the remaining buffer size is about 1,073,705.7 Mbytes. Divide that by 3.75 and you get 286.322 Mbytes. That is the largest theoretical drawing size with V24, and agrees with my experience that the program gets flaky with a drawing larger than 285 Mbytes.

"Flaky" means that odd things start happening. Tool bars disappear entirely, or some elements in tool bars just aren't displayed. Hot key keyboard assignments stop working. Wireframe drawings progress only partly and then restart, and this continues forever or until you press the ESCape key (and that sometimes doesn't work). Sometimes if you save the drawing the result is corrupted and can no longer be used. Whatever - bad things happen.

****

The  qualification in 2c, 2d and 2e above, where these uses of RAM are conditional upon what the user does, can be used to create "larger than maximum" sized drawings.

Working in Wireframe view you can cut and paste smaller drawings into a new drawing or a recently opened drawing that has not been edited or shaded without generating any of the RAM usage in 2c, 2d and 2e. Apparently backup information creation isn't initiated by cut and paste. This can create a drawing larger than 385 Mbytes without crashing the program. Then you can generate shaded images of this large drawing if enough free RAM exists in the buffer for the shading information. I have done this several times and have succeeded in generating several images from the larger than max drawings using this technique.

CAUTION: However, if I save the larger than max drawing it will be too large to edit again by drawing or deleting existing objects. The result will be funny things happening. The oversize drawing may not load again into DesignCAD. So this is a one time operation - don't try to save the oversize file, or at least save it under a different file name.

****

All of the above applies with RedSDK disabled.

RedSDK is a memory hog - it can do a lot more than the simple shading of the older versions so it uses more of the 1 Gbyte memory address space. This means that with RedSDK enabled the maximum drawing size is a lot smaller.

I don't know the actual maximum drawing size with RedSDK enabled, but I have worked successfully with 50 Mbyte drawings, and the program crashed with an 85 Mbyte drawing (all using the traditional solids and grids).

Phil



DesignCAD user since 1987