News:

The purpose of these forums is to discuss TurboCAD.  Please keep the discussion of other products to compatibility issues or how the other software can be used with TurboCAD.

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

Repeated quality renders eat up memory

Started by Jeff_in_90620, January 10, 2010, 11:00:42 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Jeff_in_90620

With TC Platinum 15.2, I made several Quality renders of a moderately complex scene (the data file is 1.6 MB).  This eats up a progressively large amount of memory.

I wasn't paying attention to the memory indicator in the Windows Task Manager and got up to 1.5GB (my system has 2GB).  Eventually, I wasn't able to save a file (the file requester comes up, but I get an error popup when I hit 'Save').  I ended up losing my work.

This problem first reared its head a year ago, but I hadn't made such a complex model since then (at least not with so many different Quality renders in one sitting) and sort of forgot about it.

Has this bug been fixed in V16?

Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

wd

This may not be a cure but it might help. Adjust your Virtual Memory up a few notches.Have you tried to recover the lost file from the back up files from My Documents folder.I experience the same problem my self but in the process of building a project I make a few copys of the same TCW. file and rename them as backups instead on relying on the back up file in the TC folder.In my case I suspect the 3d threads from the add-on menu stalls the rendering process.The next time i make threads I'll revolve them as solid cylinder instead as more less as cut thread.This is valid question and problem you bring to point. And I have found no real concrete answer in the forum in the past to solve this.This is one for the developers IMO to make improvements on next version. The following image comes to a stall when rendering process and hangs at times. I have gone to the point I had to remove the semi-chrome finish material from it to speed things up. But now I went to the draft mode.

[attachment deleted by admin]
Even a mistake may turn out to be the one thing necessary to a worthwhile achievement Henry Ford
If I have ever made any valuable discoveries it has been owing more to patient attention than to any other talent Isaac Newton
I have not failed Ive just found 10,000 ways that won't work Thomas Edison

Jeff_in_90620

I did not increase my virtual memory.  I routinely increment the name to make sure I don't lose too much (up to #80 on my current project), so I didn't bother looking for the backup as I only had to scale a screw head and rubber stamp it to 4 locations.

I have learned that the excess memory can be released by switching to Wireframe mode, but this problem shouldn't be occurring in the first place.


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

Jeff_in_90620

As it turns out, simply switching to Wireframe mode will NOT release the memory; I have to save, close and reopen the file in many cases.

Twice today, allocated memory (total, not just TC) got up to 1.4GB and I was unable to save my work, so I had to quit, reboot and redo the work.

My design isn't that complex, but I have been able to reduce the stored file size by duplicating some of the components (using the original as a template so I don't have to take so many incremental steps), so TC or the ACIS engine has some problems cleaning up after itself when tweaking a design.

After I limp to the finish line, I think I will rebuild everything and see how much memory I can save.

Has anyone noticed an improvement in V16?  I know this would be hard to quantify as more experienced designers aren't going to be as inefficient as I am while creating objects, so the answer to this question will obviously have to be subjective.

Also, it takes a lot longer to render scenes when I have more objects, even if those objects are on invisible layers.  I first noticed this in V14.  Is there any improvement on this in V16?


Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

Henry Hubich

Quote from: Jeffin90620 on January 13, 2010, 05:44:25 PM
As it turns out, simply switching to Wireframe mode will NOT release the memory; I have to save, close and reopen the file in many cases.

Twice today, allocated memory (total, not just TC) got up to 1.4GB and I was unable to save my work, so I had to quit, reboot and redo the work.

My design isn't that complex, but I have been able to reduce the stored file size by duplicating some of the components (using the original as a template so I don't have to take so many incremental steps), so TC or the ACIS engine has some problems cleaning up after itself when tweaking a design.

After I limp to the finish line, I think I will rebuild everything and see how much memory I can save.

Has anyone noticed an improvement in V16?  I know this would be hard to quantify as more experienced designers aren't going to be as inefficient as I am while creating objects, so the answer to this question will obviously have to be subjective.

Also, it takes a lot longer to render scenes when I have more objects, even if those objects are on invisible layers.  I first noticed this in V14.  Is there any improvement on this in V16?


Jeff


There's a utility called Memory Zipper Plus which lets you release memory that TCad should let go but doesn't. I used it very often on my previous computer but haven't needed it yet on the new machine. Not free, but the cost seems reasonable.

Henry H

Robert

Jeffin didn't mention which OS he is using (unless I missed it). If he's using Vista or Win 7 and aero effects, then the 2 gb is a minimum. He could turn off aero effects. He could also set his virtual memory to 3x physical ram.

Regardless of which OS he is using, he could go into his startup folder and remove programs that start up during boot and run in the background. Running the Windows disk cleanup tool often helps to increase temporary file space.  Defragging could also help. I think he could increase his virtual memory to 2X physical ram in XP and before.

All of this is common sense stuff, of course.

Jeff_in_90620

Common sense, yes, but mostly unrelated to my problem.  Task Manager clearly shows that the allocated memory is coincident with TurboCAD renders, so defragmentation would be a waste of time and the other processes (including Windows) takes less than 200MB.

The real problem is, even when I have 400-500MB of available RAM, TC will still blow up if I perform too many renders in Model space without reverting to Wireframe mode.

I have been able to alleviate my problems somewhat by doing the renders only in Paper space and switching between the two to see the results of my changes, but adding a 5th page may have caused a completely different bug to be exercised (see my Render Bug post).

Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

Jeff_in_90620

It seems there are two techniques to avoid the problems I am seeing.

1: Stay in Wireframe mode in Model space, or at least return to it often.
2: Make sure the "Rendering for print only" box is checked in the Viewport preferences for each Paper space, especially if you have multiple Paper spaces.

One bad design choice is that making a change in Model space forces recalculation of all Paper space renders, even though they are not being shown.  That's why it takes so long when you have more Paper spaces (I had 5).

Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

marc_256

Hi Jeff,

I use TC v16, and use this with large files.
I have these problems all the time and loses a lots of time with it.
Restart TC and redrawing the lost part of the drawing.
I did the test on two different computers with two different CPU's.

I do not have a solution.
But what I see, is
- if I draw a small part on layer 1
- render it
- it takes for example 45 sec.

If I draw extra parts on other layers,
and render them it takes for example 10min30sec

When I return to only layer 1 (visible)
and render this part alone it take not 45 sec
but a lot more.
What I think is that TC when rendering is not using the selected layer only.


Marc
Deluxe / TC v9 pro / TC v16.2 platinum / ... - AnimationLab 4.4 - MontageCenter 1.0 - CAM plug-in for v 16

- every professional was once an amateur - greetings from Pajottenland - Belgium -
PS: sorry for my english I speak flemish ...

GregT

Quote from: Henry Hubich on January 13, 2010, 09:14:19 PM
Quote from: Jeffin90620 on January 13, 2010, 05:44:25 PM
As it turns out, simply switching to Wireframe mode will NOT release the memory; I have to save, close and reopen the file in many cases.

Twice today, allocated memory (total, not just TC) got up to 1.4GB and I was unable to save my work, so I had to quit, reboot and redo the work.

My design isn't that complex, but I have been able to reduce the stored file size by duplicating some of the components (using the original as a template so I don't have to take so many incremental steps), so TC or the ACIS engine has some problems cleaning up after itself when tweaking a design.

After I limp to the finish line, I think I will rebuild everything and see how much memory I can save.

Has anyone noticed an improvement in V16?  I know this would be hard to quantify as more experienced designers aren't going to be as inefficient as I am while creating objects, so the answer to this question will obviously have to be subjective.

Also, it takes a lot longer to render scenes when I have more objects, even if those objects are on invisible layers.  I first noticed this in V14.  Is there any improvement on this in V16?


Jeff


There's a utility called Memory Zipper Plus which lets you release memory that TCad should let go but doesn't. I used it very often on my previous computer but haven't needed it yet on the new machine. Not free, but the cost seems reasonable.

Henry H

You might want to use it anyway, Henry. It can free up a lot of memory on your new system too... sometimes in the hundreds of MB's... YMMV.
AMD Phenom 1090T
8GB RAM
Radeon 5450 1GB
Windows 7
Redsdk  - Off
Editing History - On
v19.2 Platinum, x64

Henry Hubich

Quote from: GregT on January 18, 2010, 06:19:00 AM
Quote from: Henry Hubich on January 13, 2010, 09:14:19 PM
There's a utility called Memory Zipper Plus which lets you release memory that TCad should let go but doesn't. I used it very often on my previous computer but haven't needed it yet on the new machine. Not free, but the cost seems reasonable.

Henry H

You might want to use it anyway, Henry. It can free up a lot of memory on your new system too... sometimes in the hundreds of MB's... YMMV.

If memory serves, Greg, it was you who showed me this great utility in the first place. I do have it installed in the new box, but it recognizes only 2047 MB of my RAM (blinkered by the XP OS, perhaps), and I've never seen it show less than that unless a program is actively doing something.

Henry H

Henry Hubich

Quote from: marc_256 on January 18, 2010, 02:52:00 AM

When I return to only layer 1 (visible)
and render this part alone it take not 45 sec
but a lot more.
What I think is that TC when rendering is not using the selected layer only.


Marc


I think you're correct about that, Marc. There's one more test that you might find interesting -- and I would be interested to hear the result: Make only one layer visible; press Ctrl+A to select everything on the screen; and then render while everything is still selected.

Henry H

Jeff_in_90620

Quote from: marc_256 on January 18, 2010, 02:52:00 AM
If I draw extra parts on other layers,
and render them it takes for example 10min30sec

When I return to only layer 1 (visible)
and render this part alone it take not 45 sec but a lot more.
What I think is that TC when rendering is not using the selected layer only.
Yes, I have noticed this, too, although I had blamed it on having several Paper space views that render all the time (instead of setting the Render when Printing Only flag in each Viewport's Preferences.

It is a poor oversight by the TC programmers and their managers not to have resolved this by now.

Jeff
Jeff

TC 2026 Pro Platinum plus 2015->2024 (most with LightWorks & RedSDK) & V21
System: AMD Ryzen 9 7950X, MSI Mag X670E Tomahawk WiFi, 64GB RAM @ 4.80GHz, ARC A770 w/16GB, 3 x Samsung NVMe 990 (1TB), Windows 11 Pro (64-bit)

GregT

Quote from: Henry Hubich on January 18, 2010, 09:32:13 AM
Quote from: GregT on January 18, 2010, 06:19:00 AM
Quote from: Henry Hubich on January 13, 2010, 09:14:19 PM
There's a utility called Memory Zipper Plus which lets you release memory that TCad should let go but doesn't. I used it very often on my previous computer but haven't needed it yet on the new machine. Not free, but the cost seems reasonable.

Henry H

You might want to use it anyway, Henry. It can free up a lot of memory on your new system too... sometimes in the hundreds of MB's... YMMV.

If memory serves, Greg, it was you who showed me this great utility in the first place. I do have it installed in the new box, but it recognizes only 2047 MB of my RAM (blinkered by the XP OS, perhaps), and I've never seen it show less than that unless a program is actively doing something.

Henry H

Yep that be me  ::)

I didn't realize that it had a memory limit on it, Henry. I lost my copy some time back, and never replaced it.

Here is a freeware program that does as good a job, except that it doesn't clear and free memory from the clipboard. And just like Memory Zipper... it has no penalty on performance like other such  RAM optimizing programs. I use the portable version... no need to install.... just unzip into directory of your choice and run. Just be sure to turn off AutoOptimize if you do try it.

http://www.fcleaner.com/download.htm
AMD Phenom 1090T
8GB RAM
Radeon 5450 1GB
Windows 7
Redsdk  - Off
Editing History - On
v19.2 Platinum, x64