Exceed or extend the 2GB limit without hardware upgrades?

General discussion and questions about XNALara go here.

Moderators: ObscureMemories, Runa, Love2Raid

Post Reply
The_Chronicle_GER
Posts: 65
Joined: Wed Aug 15, 2018 8:50 pm
Custom Rank: Hunter with a dragon

Exceed or extend the 2GB limit without hardware upgrades?

Post by The_Chronicle_GER »

I'm currently working on my first big project with XNALara: A group photo with all the major (!!) characters my fanfiction has to offer. There are already some resource-eating models in the scene - I even have a scenery already - but it seems I'm running into a problem:

Is it possible to exceed/extend the 2GB memory limit XNALara works with without (!!!) the need of better hardware? I fear that this memory limit will force me to do some editing with GIMP or other image manipulation programs...

Texture resizing on the resource-eating models doesn't work out well, 'cause they're looking ugly in the end. Switching down to low-poly models is an option, but I'd like to have a closely matched graphics quality in the completed picture. Are there other ways of exceeding or extending the limit?
Image
User avatar
raidergale
Porter
Posts: 2632
Joined: Sun Nov 04, 2012 7:36 am
Custom Rank: Marie's my waifu kthx
Location: Italy

Re: Exceed or extend the 2GB limit without hardware upgrades

Post by raidergale »

Nope, unfortunately it's not a hardware issue, it's a software issue. XPS is a 32bit program, so you could have a NASA supercomputer and it'd still crash after exceeding 2GB of memory
The_Chronicle_GER
Posts: 65
Joined: Wed Aug 15, 2018 8:50 pm
Custom Rank: Hunter with a dragon

Re: Exceed or extend the 2GB limit without hardware upgrades

Post by The_Chronicle_GER »

So, either I'm in serious trouble with my big project or there is the possibility that a programming expert can write the code for a 64-bit version of XPS - is there? If not, I'm forced to use GIMP to finish the job on that thing...
Image
blueberry
Posts: 2
Joined: Sun Dec 01, 2019 3:35 am
Custom Rank: Sorry, my English is ver

Re: Exceed or extend the 2GB limit without hardware upgrades

Post by blueberry »

User avatar
XNAaraL
XPS Author
Posts: 120
Joined: Fri Sep 21, 2012 9:01 am

Re: Exceed or extend the 2GB limit without hardware upgrades

Post by XNAaraL »

blueberry wrote:Do you mean this? :?:
https://ntcore.com/?page_id=371
No !
This --> https://social.msdn.microsoft.com/Forum ... ?forum=clr

Please remember that XNALara use the 32bit Microsoft .NET framework and the 32bit Microsoft XNA framework.
Microsoft wrote: Large Address Aware (LAA)

More Information:
In the Windows 32-bit architecture, the address space for any program is shared between the application (user mode memory) and the operating system (system or kernel memory). For a 32-bit process, the total amount of addressable memory is 4 GB. By default, this memory is evenly divided between the process and the system. To support programs that may require more memory, Windows supports the LAA memory layout. This functionality is used only if the program can support it and identify itself as providing this support. LAA lets the system allocate more process memory at the expense of keeping less memory for itself.

The maximum amount of memory that Windows can provide to the program depends on the system bitness. 32-bit Windows systems can allocate no more than 3 GB for user mode memory. This shrinks available system memory to 1 GB. (A 32-bit system cannot exceed 4 GB total RAM). On 64-bit Windows systems, the addressable memory space for the system is much larger, and the system memory can be located outside the 4-GB limit. Therefore, the maximum available user memory for a 32-bit process that's running on a 64-bit system is the full 4-GB addressable range.

If you're running 32-bit Windows, this change cannot be applied automatically because it requires you to change the mode in which the operating system runs. More specifically, to take advantage of LAA on 32-bit Windows, you must enable the /3GB boot switch and then restart the system. For more information about this switch, see Available switch options for the Windows XP and the Windows Server 2003 Boot.ini files.


Note:
ÔÇóThis manual change can be reversed by removing the /3GB boot switch.
ÔÇóBy setting this switch, you reduce system memory resources to 1 GB. This may cause limitations in capabilities such as the number of programs that can be run at the same time and the number of windows (for all programs) that can be opened at the same time. Every system resource consumes some system memory. Therefore, although the /3GB switch expands memory for program resources, it reduces the memory that's available for system resources. Be aware of this tradeoff because it may trigger errors in other programs, not necessarily in the LAA program itself. 64-bit Windows systems do not have this limitation because system resources can be held outside the 32-bit addressable range.
Now, please Google about ".NET Large Address Aware" or "XNA .NET Large Address Aware"
Note that there a lot of apps claiming to provide the advantage of Large Address Aware (LAA) functionality, but what this apps doing is just to hack your system to steal data.

BTW:
XNALara (or XPS) do not support "Large Address Aware" and do not identify itself as providing this support.

Read more:
https://stackoverflow.com/questions/391 ... n-on-1-3gb
...
https://stackoverflow.com/questions/479 ... -no-effect
https://stackoverflow.com/questions/134 ... ress-aware
https://stackoverflow.com/questions/464 ... e-3-gb-ram
...
Post Reply