Overview
PAYDAY 2 limits the amount of thinking that cops can do, by limiting all cops to 60 tasks per second globally. This means that cops during assaults are far more limited in their thinking capabilities and reaction times than Overkill intended. This mod fixes that by significantly increasing the global task limit (500 per second by default, can be adjusted in the options). This means that cops will react more quickly and will use their tactics more intelligently. Expect shields to actually form "shield walls" around chokepoints now.
To make up for the performance losses that this would normally cause, this mod also optimizes some incredibly performance-intensive functions that the game uses to process cop tasks. The execution of coptasks is now done in O(n), rather than O(n^2). At the same time, this mod avoids "optimizing" functions that either have questionable performance benefit, or would outright change the way cop AI works for the worse.
Additionally, version 1.3 introduces some more changes under the hood which should bring back a very large performance boost (thanks again RedFlame!).
The default task throughput is 500 per second. You can adjust the maximum task throughput in the mod options, to better tailor the task limit to your CPU power. The minimum value is 60 (same as vanilla).
Tailored Throughput
From v1.1 onwards, the mod now has an option called "Tailored Throughput". Some heists cause massive performance drops with higher task limits. The tailored throughput option subjectively groups badly optimized heists together and assigns them lower task throughput values automatically, so you don't have to keep adjusting your options. This is subject to change.
By default, "badly optimized" heists have a throughput of 300, while very badly optimized heists have a throughput of 180. This can be changed in the options. Note that the criteria for "badly" or "very badly" heists are simply how they react to higher task throughputs. Some heists might run poorly (San Martin) but not be all that affected by task throughput.
List of heists that use this feature:
Spoiler!
- Mallcrasher (badly)
- Shacklethorne Auction (badly)
- Hell's Island (badly)
- Henry's Rock (badly)
- White House (badly)
- Border Crossing/Border Crystals (badly)
- San Martin Bank (very badly)
- Breakfast in Tijuana (very badly)
- Diamond Heist (very badly)
- Goat Simulator (very badly)
Installation
Extract the mod zip to your PAYDAY 2/mods folder. You must have the BLT Hook/SuperBLT installed.
Known compatible mods:
- Irenfist (similar mechanic already included in InF, but Think Faster will take precedence over InF's version)
- Better Jokers (makes jokers more responsive)
- Basically anything that does not touch the way cop tasks are added or executed, including Assault Tweaks, MAS and practically anything else
Incompatible Mods:
- Full Speed Swarm (duh)
Special thanks to Carkidd, for helping me test this mod (and dragging me through Bank heists while my CPU struggled to keep up with thousands of coptasks per second). Thanks to RedFlame for pointing out a vanilla performance issue related to attention_objects!