Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: 4GB Patch  (Read 7788 times)

Kalithor123

  • Bay Watcher
    • View Profile
4GB Patch
« on: July 07, 2011, 02:22:55 pm »

Does it work with Dwarf Fortress?

http://www.ntcore.com/4gb_patch.php

(Maybe it could help against world generation errors...)


oh and hello forum!  :)


Edit: I used it for performance improvements for the EU3 mod MEIOU... well i noticed no changes  :)
« Last Edit: July 07, 2011, 02:27:23 pm by Kalithor123 »
Logged

Krelian

  • Bay Watcher
  • Hola
    • View Profile
Re: 4GB Patch
« Reply #1 on: July 07, 2011, 05:03:31 pm »

I dont think it will help too much. DF is not that heavy on ram, instead, it is super heavy on processor, and it is almost always the first PC component to bottleneck the rest.
Logged

G-Flex

  • Bay Watcher
    • View Profile
Re: 4GB Patch
« Reply #2 on: July 07, 2011, 05:05:11 pm »

DF is not that heavy on ram

Ever generated a world, or tried to embark on a large site?
Logged
There are 2 types of people in the world: Those who understand hexadecimal, and those who don't.
Visit the #Bay12Games IRC channel on NewNet
== Human Renovation: My Deus Ex mod/fan patch (v1.30, updated 5/31/2012) ==

dree12

  • Bay Watcher
    • View Profile
Re: 4GB Patch
« Reply #3 on: July 07, 2011, 07:50:54 pm »

I think it would help for 64 bit processors (read: all computers made after 2005). It shouldn't glitch out or anything (unless you still use an old 32 bit processor, in which case it would probably fail badly), but the benefit might be less than one would expect.
Logged

Quietust

  • Bay Watcher
  • Does not suffer fools gladly
    • View Profile
    • QMT Productions
Re: 4GB Patch
« Reply #4 on: July 07, 2011, 09:50:03 pm »

I think it would help for 64 bit processors (read: all computers made after 2005).

If you read the page itself, you'll find that it only works when you're running a 64-bit operating system, since otherwise the upper 2GB of address space (or 1GB, if the proper option is enabled) is reserved by the operating system.

This tool might not even work correctly - some code is written to assume that a negative pointer address (i.e. >2GB) is an error condition.
Logged
P.S. If you don't get this note, let me know and I'll write you another.
It's amazing how dwarves can make a stack of bones completely waterproof and magmaproof.
It's amazing how they can make an entire floodgate out of the bones of 2 cats.

Kalithor123

  • Bay Watcher
    • View Profile
Re: 4GB Patch
« Reply #5 on: July 08, 2011, 02:24:37 am »

I've found an article about this tool (german only). A comment says after patching the programm can adress 3GB of RAM under 32bit Windows (instead of 2 GB) and 4GB under 64bit Windows (eg. Win 7 64 bit).

http://beatmasters-winlite-blog.de/?p=4371

So i've tryed it on my own  :) . Patching works fine, after loading my old save (phoebus 31.25v17, 3x2 (?) embark, 80 dorfs, 60 clowns) there are still unchanged 47 fps. After a few minutes of playing there were no crashes so far.
Logged

BigD145

  • Bay Watcher
    • View Profile
Re: 4GB Patch
« Reply #6 on: July 08, 2011, 09:59:45 am »

It patches how much virtual memory a program uses. This is your page file. So, if you have one hard drive this will probably slow things down, not speed them up as your HD struggles to do multiple things at once.
Logged

G-Flex

  • Bay Watcher
    • View Profile
Re: 4GB Patch
« Reply #7 on: July 08, 2011, 01:45:38 pm »

It patches how much virtual memory a program uses. This is your page file. So, if you have one hard drive this will probably slow things down, not speed them up as your HD struggles to do multiple things at once.

It patches how much memory space is available to the program, period, whether things are being paged to the disk or not. "Virtual memory" does not mean "memory paged to disk".
Logged
There are 2 types of people in the world: Those who understand hexadecimal, and those who don't.
Visit the #Bay12Games IRC channel on NewNet
== Human Renovation: My Deus Ex mod/fan patch (v1.30, updated 5/31/2012) ==

Kalithor123

  • Bay Watcher
    • View Profile
Re: 4GB Patch
« Reply #8 on: July 08, 2011, 03:03:00 pm »

thx dr. google i found out, that a user named TwelveBaud used this method for avoiding a crash during large and long world generation about one year ago:

http://bay12.dyndns-ip.com/dwarves/mantisbt/view.php?id=2715 

the status is still on "new".

Here's the original thread from the MEIOU forum where i found the tool (some posts below):

http://forum.paradoxplaza.com/forum/showthread.php?535848-FAQ-MEIOU-TD-Important-info-2Gb-Fix-Tutorial&s=c7f410fb4e0c631556cfa5b68e4be861


Edit: The patch seems to be the solution for this bug as well :

http://bay12.dyndns-ip.com/dwarves/mantisbt/view.php?id=136

Now larger embarks than 9x9 without crashes are possible, i tested an 12x12 embark and it works!!!  :) (but low fps, below 4)


« Last Edit: July 08, 2011, 06:05:14 pm by Kalithor123 »
Logged

Kalithor123

  • Bay Watcher
    • View Profile
Re: 4GB Patch
« Reply #9 on: July 10, 2011, 11:04:40 am »

This thread should be moved to the bug forum.
Logged

0x517A5D

  • Bay Watcher
  • Hex Editor‬‬
    • View Profile
Re: 4GB Patch
« Reply #10 on: July 10, 2011, 11:40:03 am »

Why?  It's about an "aftermarket" change to the game's executable, basically an automated hex-edit.  How is that not DF Modding?
Logged

The Scout

  • Bay Watcher
  • ?????
    • View Profile
Re: 4GB Patch
« Reply #11 on: July 10, 2011, 02:24:57 pm »

Why?  It's about an "aftermarket" change to the game's executable, basically an automated hex-edit.  How is that not DF Modding?
Yes. Bug is for problems in-game, not for programs made to make it run better.
Logged
Whatever you do, don't agree to stop looking at pornography or getting help from Jesus.
"mind if I sig this"
 - Person who isn't actually going to put that in their sig

G-Flex

  • Bay Watcher
    • View Profile
Re: 4GB Patch
« Reply #12 on: July 10, 2011, 03:22:58 pm »

The bug reports forum hasn't been used in a long time anyway; you can't even start new threads there. Everything's moved to the Mantis bugtracker now.
Logged
There are 2 types of people in the world: Those who understand hexadecimal, and those who don't.
Visit the #Bay12Games IRC channel on NewNet
== Human Renovation: My Deus Ex mod/fan patch (v1.30, updated 5/31/2012) ==

Kalithor123

  • Bay Watcher
    • View Profile
Re: 4GB Patch
« Reply #13 on: July 10, 2011, 03:49:35 pm »

ok, let us call it a "bugfix-mod"  ;)

Edit: Has someone else tested it already?
« Last Edit: July 10, 2011, 03:51:53 pm by Kalithor123 »
Logged

G-Flex

  • Bay Watcher
    • View Profile
Re: 4GB Patch
« Reply #14 on: July 10, 2011, 08:24:11 pm »

ok, let us call it a "bugfix-mod"  ;)

No, because it doesn't fix any bugs.

Quote
Edit: Has someone else tested it already?

Read the thread.
Logged
There are 2 types of people in the world: Those who understand hexadecimal, and those who don't.
Visit the #Bay12Games IRC channel on NewNet
== Human Renovation: My Deus Ex mod/fan patch (v1.30, updated 5/31/2012) ==
Pages: [1] 2