Jump to content

Recommended Posts

Posted

So I tried restricting the RAM use in Affinity Photo to 24GB. This was a poor man's test of whether I can get by with a Mac laptop that has a lot less RAM than the 64GB in my Mac Studio.

Surprise: the performance was at least as good as when I let it grab what it needs, and perhaps better - even when I loaded four very large pictures, each made up many pictures and well over 100 layers!

Does that make any sense?

Posted

Do we really need another discussion about this topic? There are countless older discussions. Setting RAM limits in performance section is mostly irrelevant. it can preserve RAM for other apps running in parallel to Affinity apps, and improve their (other apps) performance. 

the OS will automatically compress RAM and use very fast SSD for memory paging so you won’t notice any performance reduction for Affinity apps.

Leave this setting alone, no need at all to fiddle with it.

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

Posted
7 hours ago, nickbatz said:

even when I loaded four very large pictures, each made up many pictures and well over 100 layers!

The information provided is definitely not sufficient to determine - how much memory is needed for their processing. I recommend launching Task Manager (or its equivalent in MacOs), and opening a project - which will actually use more than 24 GB of RAM, in your case ideally the mentioned 64 GB (perhaps by opening several projects at the same time). I would check how this project is being worked with - i.e. make some memory and computationally intensive adjustments, and only then would I try to reduce the limit for memory usage.

Affinity Store (MSI/EXE): Affinity Suite (ADe, APh, APu) 2.5.7.2948 (Retail)
Dell OptiPlex 7060, i5-8500 3.00 GHz, 16 GB, Intel UHD Graphics 630, Dell P2417H 1920 x 1080, Windows 11 Pro, Version 24H2, Build 26100.2605.
Dell Latitude E5570, i5-6440HQ 2.60 GHz, 8 GB, Intel HD Graphics 530, 1920 x 1080, Windows 11 Pro, Version 24H2, Build 26100.2605.
Intel NUC5PGYH, Pentium N3700 2.40 GHz, 8 GB, Intel HD Graphics, EIZO EV2456 1920 x 1200, Windows 10 Pro, Version 21H1, Build 19043.2130.

Posted
16 hours ago, nickbatz said:

So I tried restricting the RAM use in Affinity Photo to 24GB. This was a poor man's test of whether I can get by with a Mac laptop that has a lot less RAM than the 64GB in my Mac Studio.

I think that you would need to have some applications open that are using 40GBs of RAM before you start Photo and then open a huge file.

Mac Pro (Late 2013) Mac OS 12.7.6 
Affinity Designer 2.6.0 | Affinity Photo 2.6.0 | Affinity Publisher 2.6.0 | Beta versions as they appear.

I have never mastered color management, period, so I cannot help with that.

Posted

PEOPLE.

Please read the object of this exercise: I'm shopping for a new laptop and I wanted to do a casual check to see whether I can still work on my computer-taxing pictures in a cheaper laptop with less memory. The difference in price is significant.

I never expected this to be a scientific test, I was just surprised that Affinity Photo doesn't slow down when its RAM is restricted.

My regular machine is a Mac Studio with 64GB of RAM and memory is never an issue.

Posted (edited)
4 hours ago, nickbatz said:

Please read the object of this exercise: I'm shopping for a new laptop and I wanted to do a casual check to see whether I can still work on my computer-taxing pictures in a cheaper laptop with less memory.

Hasn't your casual test told you what you want to know or are you looking for something more?

Edited by R C-R
Fixed typo "are" instead of "or"

All 3 1.10.8, & all 3 V2.6 Mac apps; 2020 iMac 27"; 3.8GHz i7, Radeon Pro 5700, 32GB RAM; macOS 10.15.7
A
ll 3 V2 apps for iPad; 6th Generation iPad 32 GB; Apple Pencil; iPadOS 15.7

Posted

The memory setting has no positive effect in 99.9999% of all users and use cases. It is a relic from ancient times. You can worsen performance for Affinity apps without any gain for other apps. Ignore it. Leave it alone. Don’t touch it. Forget it. 
 

Period. Finish. Done. Finito. Basta. Fertig.

Modern OS including Windows, MacOS, iPadOS manage RAM for apps all the time. Never fiddle manually unless you are a kernel developer.

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

Posted
2 hours ago, R C-R said:

Hasn't your casual test told you what you want to know are are you looking for something more?

I'm certainly not looking for people to be nasty to me - and that doesn't apply to you

2 hours ago, NotMyFault said:

Modern OS including Windows, MacOS, iPadOS manage RAM for apps all the time. Never fiddle manually unless you are a kernel developer.

Oy gevalt! Yes, I know that - although if you use music software like I do, you often do have to consider memory use. But that's a different story.

Again: I'm not interested in the Affinity Photo memory setting. The only reason I did this was to see whether I could possibly use Affinity Photo the way I use it - which uses a lot of RAM - on a MacBook Air with limited memory.

My post was because I was surprised that it didn't slow down when allotted less RAM.

Basta finito etc.

 

Posted
52 minutes ago, nickbatz said:

Yes, I know that - (…)

(…) The only reason I did this was to see whether I could possibly use Affinity Photo the way I use it - which uses a lot of RAM - on a MacBook Air with limited memory.

If you know how RAM gets managed by the OS … isn't it obvious that your test method can't deliver the wanted information?

If I understand right you run the test on your mac Studio with 64 GB RAM. – How about (if possible) removing some of the RAM hardware to experience a difference? However, the comparison may mislead if your Mac Studio uses Intel processors versus a mac with Apple Silicon/M.

• MacBookPro Retina 15" |  macOS 10.14.6  | Eizo 27" | Affinity V1  
• iPad 10.Gen.  |  iOS 18.5.  |  Affinity V2.6

Posted
28 minutes ago, thomaso said:

If you know how RAM gets managed by the OS … isn't it obvious that your test method can't deliver the wanted information?

If I understand right you run the test on your mac Studio with 64 GB RAM. – How about removing some of the RAM hardware to experience a difference? However, the comparison may mislead if your Mac Studio uses Intel processors versus a mac with Apple Silicon/M.

Actually it's not as obvious as it might seem. If you tell Affinity Photo that it can only grab, say, 16GB of RAM, one would expect that to simulate how it will behave if it only has 16GB of physical RAM available (leaving aside that the OS will use whatever it can use as well, and at this point I'm not considering a machine with less than 24GB).

I certainly don't expect this to answer my question beyond a doubt, it was just a first check. The real answer will be when I borrow a friend's machine.

Mac Studios use M chips, not Intel, and the memory isn't removable. That's one of the things that makes it hard to choose a machine these days: you can't change your mind later! But the jump from Intel to M chips was huge.

Posted
5 hours ago, nickbatz said:

16GB of RAM, one would expect that to simulate how it will behave if it only has 16GB of physical RAM available

this expectation is wrong as the OS manages physical RAM and with help of CPU MMU provides virtual RAM to apps. Apps can only influence the amount of virtual RAM they request and use. The CPU / OS controls the mapping between both types. So limiting the virtual RAM use of one app is totally different from having less physical RAM.

On older Windows OS (until Windows 8/ 2008) you had the option to limit usage of physical RAM even for OS level (in a special section of  System configuration settings), and reboot the PC. We had one user who used one specific very old app which did not run if too much RAM was available. Originally, the user opened his PC and removed RAM, rebooted the PC when he run this ap. Afterwards he installed RAM again to run other apps. When we learned about this we showed him the trick to do this by an OS setting and he was very happy as it saved him from the daily procedure.

Im not aware that such settings exists on MacOS, it is possible.

On M1 based (and later) things become more complex based on the shared RAM between CPU and GPU.

The only way to check if one or multiple apps run on a system with less RAM is to test on such a machine, or limit physical RAM usage of the OS (not of any app).

The type and size of display may play a role, too.

 

PS: on server with capable OS (including Windows data center) you can actually add or remove RAM while fully running! The MMU inside the CPU rearranges the mapping of vRAM to pRAM for all running apps, and/or intensifies paging to disk. 

Mac mini M1 A2348 | MBP M3 

Windows 11 - AMD Ryzen 9 5900x - 32 GB RAM - Nvidia GTX 1080

LG34WK950U-W, calibrated to DCI-P3 with LG Calibration Studio / Spider 5 | Dell 27“ 4K

iPad Air Gen 5 (2022) A2589

Special interest into procedural texture filter, edit alpha channel, RGB/16 and RGB/32 color formats, stacking, finding root causes for misbehaving files, finding creative solutions for unsolvable tasks, finding bugs in Apps.

I use iPad screenshots and videos even in the Desktop section of the forum when I expect no relevant difference.

 

  • Staff
Posted

Some background: RAM usage limit affects the size of the bitmap cache held in volatile memory. Data that exceeds the bitmap cache size will be written off (paged) to a backstore file on the OS disk, then retrieved again when necessary. Users of Publisher will tend to see this behaviour the most when working with lots of high resolution imagery throughout multiple page documents: images may appear low resolution/blurry for a time until they "resolve" to their more detailed copies. The efficiency of this process will be determined by the current memory status, e.g. how saturated the current memory usage is, whether other data held in memory has to be written off to the backstore file before the requested data is loaded in etc.

It doesn't constrain how much total memory the apps are allowed to allocate, so you can't use it to emulate the behaviour of a machine with less RAM installed. Reducing the usage limit arbitrarily would also modify the status thresholds for memory management, which could influence when to degrade user experience to salvage memory—this might include slow generation of mipmaps (or in extreme cases, not at all), dumping large bitmap caches that can always be rebuilt later and so on.

The architecture of modern Apple Silicon devices lends itself well to more "aggressive" memory management (which macOS has employed for quite a while now), and we tend to see lots of exaggerated claims of "you only need 8GB", "8GB on Apple Silicon is like 16GB on x86!" etc. Whilst the Affinity apps are certainly serviceable on 8GB, you can't really get around physical limitations—e.g. requirements of uncompressed bitmaps that must be held in memory—so you should always go for as much RAM as you can afford that makes sense for your workflow. If you're just casually editing basic images, 8/16GB is likely fine. If you're placing hundreds of images into a publication and manipulating them with adjustments, or working on multi-layer compositions in 16-bit or 32-bit per channel precision, you'll get a smoother experience with more memory headroom.

Hope the above is helpful!

@JamesR_Affinity for Affinity resources and more
Official Affinity Photo tutorials

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.