PreyHFR for A Talon Brave Game 1.0.0
====================================

PreyHFR is an unofficial x86/x64 ASI high-frame-rate presentation fix for
Prey (2006): A Talon Brave Game 1.5.4. It lets the game render at modern
refresh rates while keeping gameplay at its native 62.5 Hz simulation rate.

No original executable, game DLL, PK4, or other ATB file is replaced.


FEATURES
--------

- Uncaps rendering and menus without changing simulation speed.
- Smooths the player camera, raw mouse presentation, first-person weapons,
  characters, movers, skeletal animation, and renderer effects.
- Handles portals, wall walking, shuttle controls, and gravity-relative views.
- Keeps ATB's original save format and gameplay behavior.


QUICK INSTALL - BUNDLE WITH LOADER
----------------------------------

1. Close ATB if it is running.

2. Choose the archive matching your ATB executable: windows-x86 or
   windows-x64.

3. Check the folder containing prey06.exe for an existing winmm.dll. Do not
   overwrite one blindly: it may belong to another mod or ASI loader.

4. If no winmm.dll exists, extract every file from the "with-loader" ZIP
   beside prey06.exe. It includes Ultimate ASI Loader v9.7.4, the required
   early-load winmm.ini, and its MIT license.

5. Start ATB normally. There is no separate PreyHFR launcher.

PreyHFR.log should report "ATB API13 attached" after the game module loads.


PLUGIN-ONLY INSTALL
-------------------

Use the plugin-only ZIP if ATB already has a compatible ASI loader. Keep
PreyHFR.asi and PreyHFR.ini together and place them beside prey06.exe or in an
ASI directory supported by that loader.

PreyHFR is loader-agnostic and uses no Ultimate-ASI-Loader-specific API. If an
existing proxy, ReShade, or mod owns winmm.dll, follow that project's chaining
instructions instead of replacing it.


DEFAULT SETTINGS
----------------

The included PreyHFR.ini enables camera, raw mouse, world, first-person model,
skeletal animation, and renderer-effect presentation. MaxFPS=0 leaves frame
pacing uncapped; V-Sync, RTSS, or another external limiter may control it.

Avoid using two active frame limiters at the same time.


CHANGING SETTINGS
-----------------

Open PreyHFR.ini in Notepad. Set MaxFPS to a positive number for the plugin's
internal cap, or leave it at 0 for uncapped presentation. Each interpolation
category can be disabled independently for troubleshooting.

DebugLog=1 writes compact diagnostic status lines every five seconds to
PreyHFR.log. These do not change gameplay or save data.


SUPPORTED BASELINE
------------------

The tested A Talon Brave Game 1.5.4 Windows baselines have these SHA-256
hashes:

windows-x86 prey06.exe:
D4868F856E9E17EB19ABA65F5B36BC028C91BC81394D5D699D7278E2650D9FD8

windows-x86 base\gamex86.dll:
7C00325D6386D9B4B500752A0AF6527D97D8AE5F083BC0A36B197B7A3011EB2E

windows-x64 prey06.exe:
84E49B4BDA6665627456C9A145152E6A14004E407B5594265758A21815C148E9

windows-x64 base\gamex86_64.dll:
8B5519FA2C94CFF7F43473482CEA4F7C48DC43EBC9DDCD4329FC7308E8F9D235

The plugin validates ATB's public API13 handshake and required SDL/render
interfaces. Its executable timing edit is located with a validated instruction
signature instead of a fixed address. Later ATB builds may remain compatible
when those public interfaces and the timing structure are unchanged; unknown
or incompatible layouts are left unpatched.


KNOWN LIMITS
------------

- The x86 build received the primary gameplay validation, including a replay
  from the beginning through the first shuttle section. The x64 build shares
  the same source and automated tests but has received less gameplay coverage.
- Multiplayer, demos, timedemos, ReShade, other injectors, and multi-plugin
  combinations have not been comprehensively validated.
- The plugin deliberately does not alter ATB's stock zoom-sensitivity behavior.
- V-Sync and driver or external frame limits can still cap the visible rate.


TROUBLESHOOTING
---------------

- Keep PreyHFR.asi and PreyHFR.ini together.
- Check PreyHFR.log beside the ASI after a launch or motion problem.
- If the log is not created, verify ASI-loader placement and architecture.
- If another program controls frame pacing, keep MaxFPS=0.
- Architecture must match prey06.exe; x86 and x64 ASIs are not interchangeable.

For source code, updates, and issue reports, visit:

https://github.com/slopkhayzo/Prey-2006-ATB-FPSFix


UNINSTALLING
------------

Close the game and delete PreyHFR.asi, PreyHFR.ini, PreyHFR.log,
PreyHFR-README.txt, PreyHFR-LICENSE.txt, and PreyHFR-release.json. Loader-bundle
files such as winmm.dll and winmm.ini are shared third-party infrastructure;
remove them separately only after checking that no other ASI uses them.


LICENSE
-------

PreyHFR is distributed under the MIT License. See PreyHFR-LICENSE.txt.

The loader-inclusive bundle also contains Ultimate-ASI-Loader-LICENSE.txt,
Ultimate-ASI-Loader-NOTICE.txt, and a checksum record for the pinned binary.
Ultimate ASI Loader is third-party software by ThirteenAG and is not part of
PreyHFR.

Prey is a trademark of its respective owners. This unofficial project is not
affiliated with or endorsed by Bethesda Softworks, ZeniMax Media, Human Head
Studios, 3D Realms, or the A Talon Brave Game contributors.


Misc
----

For more game fixes, see https://slop-blog.enkhayzomachines.net/fixes
