SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > Silent Hunter 3 - 4 - 5 > SHIII Mods Workshop
Forget password? Reset here

Reply
 
Thread Tools Display Modes
Old 04-12-20, 08:04 PM   #1
shadow_wxh
Sparky
 
Join Date: Mar 2017
Posts: 155
Downloads: 112
Uploads: 1
Default 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?
shadow_wxh is offline   Reply With Quote
Old 04-13-20, 12:56 AM   #2
hauangua
Grey Wolf
 
hauangua's Avatar
 
Join Date: Jul 2011
Location: Verona, Italy
Posts: 927
Downloads: 1435
Uploads: 0
Default

Quote:
Originally Posted by shadow_wxh View Post
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)
__________________
Parked under the balcony with my U-27 waiting Juliet finish makeup
hauangua is offline   Reply With Quote
Old 04-13-20, 02:15 AM   #3
Anvar1061
Ocean Warrior
 
Join Date: May 2012
Location: In the sea, on land and above
Posts: 3,481
Downloads: 875
Uploads: 0
Default

What about 64-bit systems?
__________________
Anvar1061 is offline   Reply With Quote
Old 04-13-20, 03:01 AM   #4
hauangua
Grey Wolf
 
hauangua's Avatar
 
Join Date: Jul 2011
Location: Verona, Italy
Posts: 927
Downloads: 1435
Uploads: 0
Default

Quote:
Originally Posted by Anvar1061 View Post
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
__________________
Parked under the balcony with my U-27 waiting Juliet finish makeup
hauangua is offline   Reply With Quote
Old 04-13-20, 04:02 AM   #5
Anvar1061
Ocean Warrior
 
Join Date: May 2012
Location: In the sea, on land and above
Posts: 3,481
Downloads: 875
Uploads: 0
Default

Win 7
__________________
Anvar1061 is offline   Reply With Quote
Old 04-13-20, 04:38 PM   #6
Olamagato
Torpedoman
 
Join Date: Nov 2010
Location: Zielona Góra, Poland
Posts: 116
Downloads: 72
Uploads: 0
Default

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.
Olamagato is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 09:56 PM.


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.