SUBSIM Radio Room Forums

SUBSIM Radio Room Forums (https://www.subsim.com/radioroom/index.php)
-   SHIII Mods Workshop (https://www.subsim.com/radioroom/forumdisplay.php?f=195)
-   -   [TEC] Can we increase the game RAM to larger that 4GB? (https://www.subsim.com/radioroom/showthread.php?t=244593)

shadow_wxh 04-12-20 08:04 PM

Can we increase the game RAM to larger that 4GB?
 
Currently the highest recorded ram allocated to SH3 on my machine is 3,893,000 KB any thing higher that that will just crash.Right now with ever increasing size of HD GUI,HD ship model,Sub interiors,Champaine file,Harbour traffic this is getting problematic.

How did the 4GB patch worked? Why getting larger that 4GB is difficult?

hauangua 04-13-20 12:56 AM

Quote:

Originally Posted by shadow_wxh (Post 2662770)
Currently the highest recorded ram allocated to SH3 on my machine is 3,893,000 KB any thing higher that that will just crash.Right now with ever increasing size of HD GUI,HD ship model,Sub interiors,Champaine file,Harbour traffic this is getting problematic.

How did the 4GB patch worked? Why getting larger that 4GB is difficult?

Hi shadow
Probe explain.. Forgive my poor English..

Memory is divided into addresses.

Each address corresponds to a byte, 8 bits.

In 32bit processors, to compose each of these addresses the machine instructions use 2 registers, one register called selector and one called offset, the latter having a size of 32bit.

32-bit processors have 32-bit address registers.

So at most they can address 2 ^ 32 bytes = 4GB.

(simplified, non-technical and in-depth definition, just to try to explain the concept)

Anvar1061 04-13-20 02:15 AM

What about 64-bit systems?

hauangua 04-13-20 03:01 AM

Quote:

Originally Posted by Anvar1061 (Post 2662795)
What about 64-bit systems?

For 64bit depend by operative system example for windows 10 32 and 64 bit

32bit
Windows 10 Pro for Workstation 32-Bit 4GB
Windows 10 Education 32-Bit 4GB
Windows 10 Pro 32-Bit 4GB
Windows 10 Enterprise 32-Bit 4GB
Windows 10 Home 32-Bit 4GB

64bit
Windows 10 Home 64-Bit 128GB
Windows 10 Pro 64-Bit 2TB
Windows 10 Pro for Workstation 64-Bit 6TB
Windows 10 Enterprise 64-Bit 6TB
Windows 10 Education 64-Bit 128G
see here:
https://docs.microsoft.com/it-it/win...its-windows-10

Anvar1061 04-13-20 04:02 AM

Win 7
https://otvet.imgsmail.ru/download/3...1afaac_800.jpg

Olamagato 04-13-20 04:38 PM

SH3 was compiled from a high-level language as a 32-bit processor machine program, so it must have a 32-bit addressing limit, which is a number that corresponds to a positive unsigned number of 4GB.
If you still want SH3 to have access to more memory, you would have to decompile the machine code of all game modules into a high-level language such as C / C ++, and then recompile as machine code for a 64-bit processor taking into account the differences resulting from a slightly newer system API. That is, simplifying the system to make larger memory areas available at further addresses. Changing the width of a machine word in code is difficult enough with full reliable source code. Having the source code from decompilation, where all the objects have been broken down into procedures in practice, and their names and actions are incomprehensible because they are numbers in practice - creating 64-bit code is extremely difficult. Although theoretically possible.


All times are GMT -5. The time now is 04:16 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.