This repository has been archived by the owner on Jul 2, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 4b7dd51
Showing
3 changed files
with
487 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Oops, something went wrong.