Skip to content
This repository has been archived by the owner on Jul 2, 2022. It is now read-only.

Commit

Permalink
shitty draft
Browse files Browse the repository at this point in the history
  • Loading branch information
Francesco149 committed Mar 28, 2017
0 parents commit 4b7dd51
Show file tree
Hide file tree
Showing 3 changed files with 487 additions and 0 deletions.
54 changes: 54 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
FPS Uncapper for NieR: Automata.

All credits go to Altimor:
https://www.reddit.com/user/Altimor who discovered this method to
manipulate min/max timestep.

I simply spent like 2 hours finding decently reliable pointers to
detect the main menu and the pause menu (which have fixed timestep
and would become unusable) to dynamically cap and uncap framerate
as you enter and exit menus.

# Disclaimer

This is a super early release.
This code was put together in < 2 hours and still needs massive
clean-up and optimization. Will update soon. This has been barely
tested and only on windows 7 x64.

# How to use
* Install FAR: http://steamcommunity.com/app/524220/discussions/0/135512104777399045
* Download the dll from https://github.com/Francesco149/nier_uncapped/releases
* Put nier_uncapped.dll in your Nier Automata folder (right click
the game on steam, properties, local files, browse local files).
* Add the following at the top of your dxgi.ini in your Nier
automata folder:

```ini
[Import.nier_uncapped]
Architecture=x64
Filename=nier_uncapped.dll
Role=ThirdParty
When=PlugIn
```

* Run the game, disable vsync in the options and hope for the best.

# If it doesn't work or starts spamming errors
Kill nier automata from the task manager.
Delete nier_uncapped.dll from the game's folder.
Revert the ini, but it shouldn't be necessary.

# How to compile it yourself
* Clone this repo
* Install visual C++ Buld Tools 2015 (not needed if you already
have visual studio 2015 with c++ support).
http://landinghub.visualstudio.com/visual-cpp-build-tools
* Open Visual C++ 2015 x64 Native Build Tools Command Prompt

```
cd C:\Path\To\Repo
build.bat
```

* Dll will be in the repo's folder
15 changes: 15 additions & 0 deletions build.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@echo off

cl -D_CRT_SECURE_NO_WARNINGS=1 ^
-DNOMINMAX=1 ^
-nologo -MT -LD -Gm- -GR- -EHsc -W4 -WX ^
-wd4201 ^
-wd4100 ^
-wd4054 ^
-wd4047 ^
-wd4152 ^
-wd4055 ^
-wd4459 ^
nier_uncapped.c ^
USER32.LIB ^
-Fenier_uncapped.dll

0 comments on commit 4b7dd51

Please sign in to comment.