Prototype

Prototype

Not enough ratings
Remove FPS limit - HID device toggle script
By Sylum
TL;DR
Download this [www42.zippyshare.com] and change the paths to match yours.

If you fire up this game with your monster PC and wonder why it runs at 25 FPS, it's because it listens to all HID devices which burdens the CPU (sounds like some BS if you ask me :)

Currently 3 known workarounds exist:
  • Copy input8.dll to the game directory and be pissed that nothing changed (it injects an XML which I suppose should in theory change the security restrictions of the game it terms of listening to HID devices).

  • Actually going manually to the device manager and disabling all devices that are named "HID-compliant consumer control device", loosing some functionality (and time) in the process.

  • Use my lil script :D that will disable all HID-compliant devices, run the game, and then enable all HID devicesin the background after a 3 second delay.

This is a powershell (PS) script, so will only work on Windows vista and up (please don't use Vista, why would you?)

As PS scripts cannot be fired directly like Batch scripts (the old cmd stuff), you will need:

  • A file containing the actual script (.ps1 extension).

  • A shortcut with Admin permissions that will run the script. To make things a bit more minimal, you can have a mock game shortcut that runs the script (the shortcut is actually for powershell itself, but nobody will have to know our secret).

You can find both files in this link [www42.zippyshare.com]

If you are feeling sceptical, I am also adding the code directly below:

First the shortcut. I used the prototype game icon for it and used the following input in the 'Target' field:

C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -noLogo -ExecutionPolicy unrestricted -file "C:\Users\yourUserName\Desktop\script.ps1"

Make sure you run the shortcut as admin. You can set it to run as admin under Shortcut->Advanced.

Then the script itself:

#Requires -RunAsAdministrator $gamePath = X:\Steam\steamapps\common\Prototype\prototypef.exe <----Enter your game path here and don't paste this comment $hidDevices = Get-PnpDevice -FriendlyName 'HID-compliant consumer control device' -status OK Disable-PnpDevice -Confirm:$false -InstanceId $hidDevices.InstanceId $gamePath | Invoke-Expression Start-Sleep -s 3 Enable-PnpDevice -Confirm:$false -InstanceId $hidDevices.InstanceId

Lastly if you have to use a batch file, you could convert the script to Batch using some PS wizardry found in this linkedIn blog [www.linkedin.com].

   
Award
Favorite
Favorited
Unfavorite
Guide
1 Comments
NaCl Sodiac 14 Jul, 2023 @ 1:02pm 
Could you re-share the script? Link broke :(