Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 40
Posts: 40   Pages: 4   [ Previous Page | 1 2 3 4 | Next Page ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 47144 times and has 39 replies Next Thread
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9141
Status: Offline
Reply to this Post  Reply with Quote 
Re: Increase memory

If Sweet Home 3D is installed in Applications folder, the easiest way should be to edit the Info.plist file in a Terminal window with a command like:
sudo nano /Applications/Sweet\ Home\ 3D.app/Contents/Info.plist
(the system will prompt an administrator password)
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Jan 30, 2018, 10:38:04 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
ssandison
Newbie



United Kingdom
Joined: Jul 9, 2020
Post Count: 17
Status: Offline
Reply to this Post  Reply with Quote 
Re: Increase memory

I can't see the option in my Info.plist. I have the sourceforge installed on a mac os 10.14.5.
[Jul 9, 2020, 1:39:52 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9141
Status: Offline
Reply to this Post  Reply with Quote 
Re: Increase memory

ssandison, please read again the FAQ. You probably run Sweet Home 3D with Java 8, in which case increasing the max memory requires to modify another file.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Jul 9, 2020, 8:34:22 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
ssandison
Newbie



United Kingdom
Joined: Jul 9, 2020
Post Count: 17
Status: Offline
Reply to this Post  Reply with Quote 
Re: Increase memory

ssandison, please read again the FAQ. You probably run Sweet Home 3D with Java 8, in which case increasing the max memory requires to modify another file.


Perfect thanks that sorted it. I must have missed that bit of the FAQs somehow.
[Jul 10, 2020, 8:21:17 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
unitedwewillwin
Newbie




Joined: Dec 24, 2021
Post Count: 2
Status: Offline
Reply to this Post  Reply with Quote 
Re: Increase memory

I have been trying to increase the memory by following the steps of the FAQ but I am stuck. I'm using the installer version on macOS 12.1.

The FAQ says to "edit the Info.plist" and "change this number by udpating the value of the -Xmx". This is what tried to do. I followed the following steps : Show Package Contents > Contents > Info.plist. However, once the Info.plist opened, nowhere in the lines of the code could I find an "-Xmx" value.

Here is the code :

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist SYSTEM "file://localhost/System/Library/DTDs/PropertyList.dtd">
<plist version="0.9">
<dict>
<key>CFBundleGetInfoString</key>
<string>Sweet Home 3D 6.6 Copyright 2007-2021 eTeks</string>
<key>CFBundleVersion</key>
<string>6600</string>
<key>CFBundleShortVersionString</key>
<string>6.6</string>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleExecutable</key>
<string>SweetHome3D</string>
<key>CFBundleIconFile</key>
<string>SweetHome3D.icns</string>
<key>CFBundleIdentifier</key>
<string>com.eteks.sweethome3d.SweetHome3D</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.6</string>
<key>CFBundleName</key>
<string>Sweet Home 3D</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleSignature</key>
<string>SH3D</string>
<key>CFBundleAllowMixedLocalizations</key>
<string>true</string>
<key>NSHighResolutionCapable</key>
<true/>
<key>LSMinimumSystemVersion</key>
<string>10.9</string>

<key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeIdentifier</key>
<string>com.eteks.sweethome3d.SweetHome3D</string>
<key>UTTypeReferenceURL</key>
<string>http://www.sweethome3d.com/</string>
<key>UTTypeDescription</key>
<string>Sweet Home 3D Document</string>
<key>UTTypeIconFile</key>
<string>SweetHome3DDocument.icns</string>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
<string>public.content</string>
</array>
<key>UTTypeTagSpecification</key>
<dict>
<key>com.apple.ostype</key>
<string>SH3D</string>
<key>public.filename-extension</key>
<array>
<string>sh3d</string>
<string>sh3x</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeIdentifier</key>
<string>com.eteks.sweethome3d.SweetHome3DLanguageLibrary</string>
<key>UTTypeReferenceURL</key>
<string>http://www.sweethome3d.com/</string>
<key>UTTypeDescription</key>
<string>Sweet Home 3D Language Library</string>
<key>UTTypeIconFile</key>
<string>SweetHome3DLanguageLibrary.icns</string>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
<string>public.content</string>
</array>
<key>UTTypeTagSpecification</key>
<dict>
<key>com.apple.ostype</key>
<string>SH3L</string>
<key>public.filename-extension</key>
<array>
<string>sh3l</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeIdentifier</key>
<string>com.eteks.sweethome3d.SweetHome3DFurnitureLibrary</string>
<key>UTTypeReferenceURL</key>
<string>http://www.sweethome3d.com/</string>
<key>UTTypeDescription</key>
<string>Sweet Home 3D Furniture Library</string>
<key>UTTypeIconFile</key>
<string>SweetHome3DFurnitureLibrary.icns</string>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
<string>public.content</string>
</array>
<key>UTTypeTagSpecification</key>
<dict>
<key>com.apple.ostype</key>
<string>SH3F</string>
<key>public.filename-extension</key>
<array>
<string>sh3f</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeIdentifier</key>
<string>com.eteks.sweethome3d.SweetHome3DTexturesLibrary</string>
<key>UTTypeReferenceURL</key>
<string>http://www.sweethome3d.com/</string>
<key>UTTypeDescription</key>
<string>Sweet Home 3D Textures Library</string>
<key>UTTypeIconFile</key>
<string>SweetHome3DTexturesLibrary.icns</string>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
<string>public.content</string>
</array>
<key>UTTypeTagSpecification</key>
<dict>
<key>com.apple.ostype</key>
<string>SH3T</string>
<key>public.filename-extension</key>
<array>
<string>sh3t</string>
</array>
</dict>
</dict>
<dict>
<key>UTTypeIdentifier</key>
<string>com.eteks.sweethome3d.SweetHome3DPlugin</string>
<key>UTTypeReferenceURL</key>
<string>http://www.sweethome3d.com/</string>
<key>UTTypeDescription</key>
<string>Sweet Home 3D Plugin</string>
<key>UTTypeIconFile</key>
<string>SweetHome3DPlugin.icns</string>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
<string>public.content</string>
</array>
<key>UTTypeTagSpecification</key>
<dict>
<key>com.apple.ostype</key>
<string>SH3P</string>
<key>public.filename-extension</key>
<array>
<string>sh3p</string>
</array>
</dict>
</dict>
</array>
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>LSItemContentTypes</key>
<array>
<string>com.eteks.sweethome3d.SweetHome3D</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>SweetHome3DDocument.icns</string>
<key>CFBundleTypeName</key>
<string>Sweet Home 3D Format</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
</dict>
<dict>
<key>LSItemContentTypes</key>
<array>
<string>com.eteks.sweethome3d.SweetHome3DLanguageLibrary</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>SweetHome3DLanguageLibrary.icns</string>
<key>CFBundleTypeName</key>
<string>Sweet Home 3D Language Library Format</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
</dict>
<dict>
<key>LSItemContentTypes</key>
<array>
<string>com.eteks.sweethome3d.SweetHome3DFurnitureLibrary</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>SweetHome3DFurnitureLibrary.icns</string>
<key>CFBundleTypeName</key>
<string>Sweet Home 3D Furniture Library Format</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
</dict>
<dict>
<key>LSItemContentTypes</key>
<array>
<string>com.eteks.sweethome3d.SweetHome3DTexturesLibrary</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>SweetHome3DTexturesLibrary.icns</string>
<key>CFBundleTypeName</key>
<string>Sweet Home 3D Textures Library Format</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
</dict>
<dict>
<key>LSItemContentTypes</key>
<array>
<string>com.eteks.sweethome3d.SweetHome3DPlugin</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>SweetHome3DPlugin.icns</string>
<key>CFBundleTypeName</key>
<string>Sweet Home 3D Plugin Format</string>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
</dict>
</array>
</dict>
</plist>


Do you know how I could proceed? Thank you in advance.
[Apr 15, 2022, 3:44:58 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9141
Status: Offline
Reply to this Post  Reply with Quote 
Re: Increase memory

Please, read again the FAQ, there are 3 different cases for macOS and you probably didn't follow the option matching your case.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Apr 15, 2022, 4:39:36 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Keet
Advanced Member
Member's Avatar

Netherlands
Joined: Apr 8, 2022
Post Count: 754
Status: Offline
Reply to this Post  Reply with Quote 
Re: Increase memory

In the FAQ: "...and the installer version uses 1 GB or 2 GB at maximum,..."
Does this mean that I can't give SH3D more than 2GB? I have plenty of memory and can easily give SH3D 32GB of memory to use. Would it do any good? Does more more memory (above 2GB) increase performance?
[Apr 16, 2022, 10:12:43 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9141
Status: Offline
Reply to this Post  Reply with Quote 
Re: Increase memory

I don't think that writing a FAQ about increasing the maximum memory would be interesting if its purpose wasn't to let users increase the default maximum wink
You can choose any value for this maximum but don't select a value close to the RAM size of your computer, because it needs some memory for other tasks too. Choosing a large value like 32 GB won't probably increase performances, except if your home design uses many very large 3D models and texture images. You should think about it the opposite way: a too small value may prevent Sweet Home 3D from computing photos or slow down a lot other tasks.
If needed, you may follow how much memory Sweet Home 3D actually uses in Activity Monitor application available in macOS utilities (but the displayed memory is not easy to interpret because Sweet Home 3D is a Java application).
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Apr 16, 2022, 11:39:26 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Keet
Advanced Member
Member's Avatar

Netherlands
Joined: Apr 8, 2022
Post Count: 754
Status: Offline
Reply to this Post  Reply with Quote 
Re: Increase memory

Thank you Emmanuel. I'm on Linux and currently have 64GB of memory (soon to be 128) so 32GB is a realistic possibility.

For your information: I can see in the Linux system monitor that SH3D never uses over 2 GB while I have set the -xmx parameter to 3g. No matter how many heavy projects I open and manipulate, the max memory usage remains 2GB.
It's only when rendering a photo of a large estate on a 200mx200m terrain that the memory usage goes over the 2GB limit to 2.4. The thing is, after closing all but one project, including the one I used for the photo rendering, the used memory remains at 2.4GB where I would have expected it to decrease again. For example Firefox does free up memory when you close tabs or a second instance, SH3D and/or Java apparently don't.
What I can determine is that the processor is more important for better performance, probably because of the heavy calculations involved. That is, as long as there's enough memory so that doesn't cause a bottle neck. Very soon I can start on my new machine with a Ryzen-7-Pro-5750G compared to my current Intel Core Haswell processor. That should make a difference.

An idea that could help a lot of users with performance problems: have a switch to temporarily suppress 3DView updates while drawing in the 2D plan. When I have the 3DView completely hidden because I'm in the 2D plan the 3DView still requires system resources while I don't need it at that moment. I read about the way to only have a 2D SH3D version but that totally eliminates any 3DView.

How much does a graphics card help in the overall performance? One with faster or more memory?
[Apr 16, 2022, 12:37:21 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9141
Status: Offline
Reply to this Post  Reply with Quote 
Re: Increase memory

Sorry Keet for the misunderstanding about the OS.
For example Firefox does free up memory when you close tabs or a second instance, SH3D and/or Java apparently don't.
Firefox isn't a Java program. Java is great for many things including its memory management, but once a Java application allocates more memory to work, the way that memory is released once not not needed anymore is less predictable or may vary from a Java Virtual Machine implementation to an other. It's released without problem internally for other tasks in Sweet Home 3D, but even if the Java application doesn't need that internal free memory immediately, it won't be released for the OS during a long time.
have a switch to temporarily suppress 3DView updates while drawing in the 2D plan.
That switch already exists even if it's not so handy: hide the 3D view by moving the separator between the plan and the 3D view, close your home and reopen it. Then, the resources required for the 3D view will be requested only once you view the 3D view again.
But keep in mind that 3D resources are still needed to create top images of the furniture in the plan (unless you didn't select Top view option in preferences pane).
much does a graphics card help in the overall performance? One with faster or more memory?
Sorry, I don't know. When comparing the performances of the 3D view in the Java version and the JavaScript Online version on a given computer, I wonder if the bottleneck might be more in Java3D layer than in the graphics card.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D developer
[Apr 25, 2022, 11:34:56 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Posts: 40   Pages: 4   [ Previous Page | 1 2 3 4 | Next Page ]
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

    Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads
   
© Copyright 2006-2024 eTeks - All rights reserved