Author Topic: Memory crashes during terrain editing? Read this.  (Read 209 times)

0 Members and 1 Guest are viewing this topic.

Offline Eyeklops

  • Recruit
  • *
  • Posts: 134
  • Karma: 18
Memory crashes during terrain editing? Read this.
« on: May 20, 2011, 04:41:55 AM »
When you sculpt terrain using the editor, it caches large amounts of "undo" information.  The default is 50 undo's.  You can see this by holding down on the left mouse button while taking a large swipe of the terrain using the flatten tool. You will see tens, if not hundreds of megabytes, of ram being eaten during each terrain edit.  The longer you hold the LMB down and move the cursor, the more ram is eaten per undo.  200MB x 50 undo's = 10GB of ram, you can see that most computers could not fit this into ram.  Taking smaller swipes reduces the amount of memory required for 1 "undo."  50MB x 50 undo's = 2.5GB, which is much more manageable for most systems.  The other option is to lower the number of "undo's" the system will store.  If large brush strokes cannot be avoided, try lowering the number of undo's to compensate, 20 should help. 


TL:DR:  Take short terrain editing strokes and lower the number of "undo's" the system stores.
"You can lead a fool to wisdom but you can't make him think"
"If at first you don't succeed, skydiving is not for you."

Offline ~SJ~ Blhurr

  • Star Colonel
  • ****
  • Posts: 1912
  • Karma: 48
  • ~SJ~
Re: Memory crashes during terrain editing? Read this.
« Reply #1 on: May 20, 2011, 01:48:46 PM »
Good tip. 
Mechwarrior Blhurr - Smoke Jags - Delta Star - The 331st Feral Fangs

"Damn these RCTs! 'Mech combat is bad enough, let alone the  combine d arms of 'Mechs, vehicles, infantry, and fighters."

Offline shadowkiller

  • Lead Level Designer
  • MWLL Developer
  • Lance Captain
  • *
  • Posts: 706
  • Karma: 36
  • Particle Guru
Re: Memory crashes during terrain editing? Read this.
« Reply #2 on: May 21, 2011, 12:41:11 PM »
Terrain editing is one of the most intensive processes in the editor. It helps to keep your brush size under about 700. Also, keep an eye on your ram usage on the bottom right in the editor. The editor will crash if you use too much ram (64 bit HIGHLY recemended) so constantly save your work. I have had the editor take over 4gb of my ram just from terrain painting.


(╯°□°)╯︵ ┻━┻

Angry coffee table flip attack!

Offline Eyeklops

  • Recruit
  • *
  • Posts: 134
  • Karma: 18
Re: Memory crashes during terrain editing? Read this.
« Reply #3 on: May 21, 2011, 08:44:26 PM »
Terrain editing is one of the most intensive processes in the editor. It helps to keep your brush size under about 700. Also, keep an eye on your ram usage on the bottom right in the editor. The editor will crash if you use too much ram (64 bit HIGHLY recemended) so constantly save your work. I have had the editor take over 4gb of my ram just from terrain painting.

I didn't know it was possible to have a terrain editing brush larger than 200m,  I will have to play with this.
"You can lead a fool to wisdom but you can't make him think"
"If at first you don't succeed, skydiving is not for you."