Increase memory

This topic has been viewed 56121 times and has 39 replies
Thread status: Active
How can I do this? [img]http://www.sweethome3d.com/images/flags/en_small.gif[/img]
db4tech
Posts: 223
Joined: Mon May 03, 2010 5:10 pm
Country: UK

Re: Increase memory

Post by db4tech »

Interesting that it still ran! [:)] If it is helpful my kitchen test scene contains several very high resolution textures (1280x1280) for the female model and it rendered fine with 512MB with the swap file on default 'let Windows manage swap file'

End users shouldn't really be disabling their swap file unless they have 3-4GB or more of memory, even then there isn't really much of a performance gain, especially under Windows 7 which now handles memory and paging much more efficiently.

db4tech
User avatar
Puybaret
Posts: 9440
Joined: Mon Nov 07, 2005 12:00 pm
Country: Paris, France
Contact:

Re: Increase memory

Post by Puybaret »

My main goal is and will always be to let a maximum count of users run Sweet Home 3D out of the box. If this implies that I must support those who disabled their swap file, then it should run for them too.
Emmanuel Puybaret, Sweet Home 3D creator
db4tech
Posts: 223
Joined: Mon May 03, 2010 5:10 pm
Country: UK

Re: Increase memory

Post by db4tech »

Very wise I can fully understand your thinking but you also want users with newer computer systems to appreciate just how good your program is. So with that in mind, how about option 3 ? [:)]

Instead of writing complex code to check a users memory or swap file availability, produce 2 Windows versions for download or Online use, by changing just the small area of code that requests either 512 or 1024MB.

Could be advertised as something like the following:
  1. 1GB version (For power users) provides greatly improved rendering speed.
  2. 512MB version (Designed for computers with less memory and for older systems) rendering speeds will be slower.[/list=1]
    db4tech
User avatar
hansmex
Posts: 4027
Joined: Sat Sep 26, 2009 11:36 am
Country: Netherlands

Re: Increase memory

Post by hansmex »

db4tech:

Selling ideas??

Image

Hans
Hans

new website - under constuction
hansdirkse.info
db4tech
Posts: 223
Joined: Mon May 03, 2010 5:10 pm
Country: UK

Re: Increase memory

Post by db4tech »

He He [:))]
I like it Hans!

By the way the vacuum cleaners are on special offer at the moment but it is a time limited offer. Not to mention the fact the colour even matches your scooter! [:D]

db4tech
sanjoyp
Posts: 16
Joined: Tue Sep 28, 2010 11:54 am
Country: Scotland, UK
Contact:

Re: Increase memory

Post by sanjoyp »

Is there a way of doing this in 3.0 beta ?
User avatar
hansmex
Posts: 4027
Joined: Sat Sep 26, 2009 11:36 am
Country: Netherlands

Re: Increase memory

Post by hansmex »

Sanjoy,

My guess is that you can do the xMx-thing once the installed version 3.0 is ready.

Hans
Hans

new website - under constuction
hansdirkse.info
User avatar
fhoofman
Posts: 87
Joined: Thu Oct 15, 2009 3:49 am

Re: Increase memory

Post by fhoofman »

You can change the max memory used by Sweet Home 3D only on the installer version, by changing the value in the -Xmx Java option:
- under Linux, edit SweetHome3D script and update the 1024 value in the option -Xmx1024m,
- under Mac OS X, right click on Sweet Home 3D application icon, select Show Package Contents, open Contents folder, edit Info.plist file by dragging its icon on TextEdit application, and update the 1024 value in the text <string>-Xmx1024m</string>,
- under Windows, create a text file named SweetHome3D.l4j.ini in the same directory as SweetHome3D.exe, and write the max memory Java option in that file, for example:

Code: Select all

-Xmx2048m
for 2 GB, then relaunch Sweet Home 3D.

On all systems, 1024m means 1024 MegaBytes.

I'm running windows 7, and I create text file SweetHome3D.l4j.ini.
content of the text file:

-Xmx2048m

when I run the exe file, there's an error occur

" Could Not Create The Java Virtual Machine"
db4tech
Posts: 223
Joined: Mon May 03, 2010 5:10 pm
Country: UK

Re: Increase memory

Post by db4tech »

Hi fhoofman,

I'm also using Windows 7 but also tried with XP SP3.

Windows seems to be limited to a maximum of (around) 1536 (1.5) to start without the error you mentioned.
From all the tests I carried out before (on the previous pages) there's no real benefit on going higher than 1024 anyway.

So if you want to try it, my recommendation is to use. [:)]

-Xmx1024m


db4tech
r921vs
Posts: 5
Joined: Tue Jan 30, 2018 8:57 am
Country: Russia

Re: Increase memory

Post by r921vs »

The Info.plist file on mac is protected and can not be changed. How can this be fixed?
Post Reply New Topic

Who is online

Users browsing this forum: No registered users and 1 guest