VOGONS

Common searches


First post, by Mezath

User metadata
Rank Newbie
Rank
Newbie

Fallout for Windows v1.1 - Sleep() patch
Created by: TRAC (Charles Bilyue) (esaelon@gmail.com)

This is a simple patch to the FalloutW.exe from Fallout for Windows v1.1.

Normally, Fallout for Windows v1.1 (probably other versions, as well)
will use all available CPU time. The purpose of this patch is to improve
multitasking friendliness and reduce CPU utilization, to reduce CPU power
consumption and heat output.

The method by which this is accomplished, is by changing a code path
present in the original EXE:

if (PeekMessage(...) == 0)
{
return;
}

to:

if (PeekMessage(...) == 0)
{
Sleep(1);
return;
}

To obtain sufficient space for the patch, 'unused' space at the end of the
code and data sections has been used. This patch has not been tested in
combination with any other patch, so it is not known if it would be compatible
or not.

This patch and/or the changes contained in it may be distributed freely
without charge so long as this file is distributed in the same method of
distribution at the same time. Any other method of distribution is
prohibited unless authorized by some other agreement.

Attachments