Featured Performance Improvements 0.2.4

Please do not ask when mod authors will update their mods to 3.10 or if they can upload older versions of their mods.
Bothering mod authors will lead to warnings and repeat offenses will lead to eventual bans.

Fixing bugs and optimizing code

REQUIRES UnityToolkit


A collection of performance improvements I'm working on. I will update and include other fixes and improvements I make as I optimize things.


This has not been tested with Fika and no support will be offered to Fika users. Especially those found trying to bypass feature restrictions.


Issues? Open one here


Adds:

  • AI limiter based on range, fully configurable in the F12 menu. (Disabled if Fika or Questing Bots is present)
  • Dynamic optic resolution based on the active scaling mode in the EFT graphics settings. If DLSS is the mode chosen in the EFT graphic settings then its the mode the mod will use to scale the resolution when scoped in. This should vastly improve fps when using scopes. THE MODE SELECTED IN THE MOD MUST MATCH YOUR EFT GRAPHIC SETTINGS OR A FLICKER WILL HAPPEN. I CAN DO NOTHING ABOUT THIS.
  • Experimental patches. These range from threading optimizations to logic optimizations. Can be disabled in the F12 menu. These may cause crashes for some. Disable it if you begin crashing.
  • New Graphics Settings in the EFT Graphics settings page.


Fixes:

  • The stutter on bot death (one of the most egregious issues with the 3.10 client)





Todo:

  • Attempt to thread path finding logic, this eats about 6-12ms per call to each method and can be potentially multi-threaded.
  • Attempt to thread bot spawning, this should address stutters on bot spawn.
  • Random fixes of broken code I come across while doing other things.


Installation:
vKRw58b.gif


If you wish to support my work you can buy me a coffee!

  • Version 0.2.4

    - Fixes bots not moving while questing bots is installed.

  • Version 0.2.3

    - Fixes bots not moving while Fika is installed.

  • Version 0.2.2

    Small bug fix update

    - Fixes an edge case path issue if the plugin is placed inside of a sub folder of plugins

    - Fixes dead bots not being able to be looted

    - Reworked the sleep by count option, it is now max active bots instead of max sleeping bots to make more sense

    - Features that need to be disabled for Fika are now properly disabled


    Additional note: I noticed while working on this update that SAIN disables the standby layer of bots near active ones. So if your targets are not being hit, this is likely the cause. No I wont bypass it.

  • Version 0.2.1

    - Adds a config option to limit the amount of max sleeping bots.

    - When enabled, bots will be disabled from furthest to closest until it reaches its target

    - Added new option to disable limiting sniper scavs

    - Adds bot culling for disabled bots (Can be disabled). I did not cull their equipment, this was intentional. If you see floating equipment walking around it means shit is busted and you should let me know

    - Adds option to disable the shadow settings

    - Fixes another flicker related issue when using dynamic resolution options (This was a flicker caused by me, not one caused by switching sampling modes, I cannot fix that.)

  • Version 0.2.0

    - Adds new options to the EFT graphics menu (No F12 menu😄)

    - Shadow settings have tool-tips to explain what they do. These are taken directly from their documentation.

    - Unknown if these will have any drastic affect for anyone, but added nonetheless.

    - New resampling scalars;

    0.90x

    0.80x

    0.70x

    0.60x

    - New Shadow texture resolution setting (defaulted: Medium);

    Very high

    high

    medium

    low

    - New Shadow Cascade setting (defaulted: Two);

    Zero

    Two

    Four

  • Version 0.1.4

    - Fixes a flicker when using the scaling options. NOTE: If your setting does not match your in game setting it will flicker regardless. This is changing rendering settings at the engine/driver level and I can do nothing about it. From my testing with all the scaling options FSR3 seems to perform the best.

    - Adds Experimental patches. Disabled by default. Requires a restart to enable or disable. These range from threading optimizations to logic optimizations.

    - Threads a method responsible for updating enemy information when a bot is hit. (Experimental can be disabled(requires restart))

    - Bot group updates will happen every other frame (Experimental can be disabled(requires restart))

    - These options have been briefly tested with SAIN and seemed to have cause no issues. They have not been tested with Fika.

  • Version 0.1.3

    - Clamps min and max super sampling option to 1% and 99% respectfully (Prevents crash by a divide by zero error OOPS)

    - Bot limiter will become unavailable if either Fika or Questing bots are present as they are not compatible and have their own solutions. All other features will remain enabled.

    - Bot limiter will now check the distance to enable first and return out if it enabled a bot.

    - Lays the foundation for a future updates, adds code that is disabled for now as I wanted to get these bugs fixed. This is the groundwork for a newer easier to maintain scene cleaner (declutterer) yes I'm aware declutterer is broken, its being rewritten in this mod and then it will become deprecated.

  • Version 0.1.2

    - Adds dynamic resolution scope options based on super sampling, dlss, fsr2, or fsr3 modes. The mode used in mod settings is based on the mode selected in the EFT graphic settings. If DLSS is on, the DLSS mode will be used, etc. This should vastly improve fps when scoped in with optics.

    - Fixes bots potentially not becoming awake again when disabling the bot limiter

  • Version 0.1.1

    - Adds bot distance limiter that will disable bots based on distance, this fixes bsg's AI limiter to behave how the AI limit mod does. Previously it would base its range off of any active bot near it, causing it to almost never trigger. (nice)

    - Able to be enabled or disabled on the fly (F12 menu)

    - You can choose to only disable PMC's, Scavs, or Bosses (F12 menu).

    - Distances are configurable for each map (F12 menu)


    NOTE: if an inactive bot is shot by an active one or yourself, it will become active and have a 30 second cool down before able to be disabled again.

  • Version 0.1.0

  • Any idea if the scope resolution feature works when using DLSS4 via the Nvidia App?

  • Sadly this mod gives me no performance boost at all..

    Thumbs Up 1
  • Hey, for some reason I can't see the AI limiter options

    • You're using some mod that's not compatible with it and it disabled itself. Working as intended to keep you from having bugs.

    • Aah alright, thank you

  • Question should this mod appear in the active server mods?

  • Does this mod helps with stutters every 2-3 minutes ?

    Going from 60fps to 3fps got me killed a few times

    • It specifically helps with the death stutter which is the major most consistent stutter, the one every 2-3 minutes is likely bot spawns, which nothing addresses at the moment.

  • so, experimental features, what are they exactly?

  • @Dirtbikercj, Thanks for all the work on getting this to be compatible with the other mods (i.e. Fika, Questing Bots, SWAG/Donuts,...). Reading the [Questing Bots] channel in the SPT Discord server, there has been a ton of comments/thoughts on what version of PI works properly with what version of Fika, QB,.....


    Just to clarify, this 0.2.4 version release comment "Fixes bots not moving while questing bots is installed.", does this 0.2.4 version still work with Fika that was fixed in the previous 0.2.3 version? Thanks in advance.

  • hello ! does version version 0.2.3 (last) work with spt 3.9.8 ?

    • No version of this works on anything before 3.10.x

  • i dunno what "standing still" issue people are having, but then again im not using 50+ mods that might conflict with eachother.

    • Yea if you're an amateur mod user using like 10 mods then sure bro.

      ? 1
    • "yEa If YoRuE an AmAteUR".


      - Maybe i just have a different POV on how to play the game how i want to play it, mr. smooth brain whiten my teeth ass clown.

    • You got his name wrong, Its "Tom Cruise," not "Mr. smooth brain whiten my teeth ass clown" 🙄

    • @MoGumbo Excuse my lil bro, he got schizo and can't communicate normally.

    • All of you STFU.

      Happy 2
  • Big thank you to Dirtbikercj , works great !

    Heart 1
  • Dirtbikercj, by the powers bestowed upon me, I hereby name you

    The Protector of FPS
    The Purveyor of Smooth Gameplay

    The Superintendent of Input Lag
    The Destroyer of Bad Coding

    The Adjudicator of Individual Merit
    The Beacon of Benevolence
    The Leviathan of Honor

    all in all,

    The Custodian of Potato PC's

    W mod by a W modder. No problems whatsoever and my game looks like a totally different experience (SPT 3.10). Thank you!

    Happy 1
  • Like others have mentioned something appears to be breaking the AI brain on spawn.


    I'm guessing it has something to do with this mod and SAIN not working correctly?

    • These are all my mods but I'm actively trying to remove MOAR or find an alternative since MOAR is having PMC spawning issues at the moment.


      ContinuousHealing

      DewardianDev-MOAR-2.6.7

      Artem.2.1.0

      Increase Climb Height 1.3

      Time.WeatherChanger

      acidphantasm-refsptfriendlyquests

      odt-iteminfo

      VCQL-2.0.3

      raid_review__0.3.0_windows

      Tyfon-UIFixes-3.1.1

      TarkovHDRework

      SVM.Server.Value.Modifier1.10H4

      DrakiaXYZ-LiveFleaPrices-1.4.0

      MoxoPixel-TacticalGearComponent

      MoxoPixel-Painter

      DanW-SPTQuestingBots

      UnityToolkit-1.0.1

      Skwizzy-LootingBots-1.4.1

      DrakiaXYZ-Waypoints-1.6.1

      DrakiaXYZ-BigBrain-1.2.0

      SAIN-3.2.1-Release

      StashSearch

      AmandsGraphics.1.6.5

      ThatsLit_1.3100.3

    • Just disable PerformanceImprovement and you will see that the issue is fixed immediately!

    • You are aware that questing bots is out of date right?

    • Questing bots being out of date is more than likely the issue here

    • Possible but I tested without Questing bots and still had the issue.


      From what I can tell Questing bots just needs it's config file updated. Checking bot behavior it still appears working with SAIN and MOAR.

  • this is working perfectly for me...getting like 30 to 40 more frames...ai seem to be working will...its crazy to me that bsg cant get this right

    Thumbs Up 2
  • Honestly, the issue with AI standing still and not moving is not just with FIKA, it also affects non-FIKA users as well. I think the culprit was the AI-limiting module.

    • I think you're correct, I'm thinking it's having issues with any other mods that control AI which makes this sadly un-useable at the moment.

  • bruh using this mod broke the ai spawns theres alot of AI scavs but no AI pmc i had to reinstall the spt.

  • ai doesn't work when using this mod with lastest fika

    • please read the description :)


      This has not been tested with Fika and no support will be offered to Fika users

    • Maybe you read the patch notes "Features that need to be disabled for Fika are now properly disabled"

  • Hi Dirtbikercj,


    Because this new 3.10 has stutter issues with scav spawns etc I lowered the active bot count to 1 but iam still seeing 2-3 pmcs every raid and there is a lot of scavs. Would it be possible to have a scav bot limiter with the mod?


    Had to lower it to 1 active bot because even my I9 12900K overclocked and DDR5 was struggling. Still getting around 85-100 fps when the bots stop spawning but it seems to be so many scavs spawn at 1 time tanking the fps to like 50 sometimes

  • Thanks for this mod :)

  • PMC bots and bosses no longer spawn in my raids, only scavs ones. What could be the cause of this problem? Experimental patches do not work.

    • No this has nothing to do with spawns.

  • This is brilliant! Thank you so much! It's so much smoother after installing this! :)

    Heart 1
  • Hey man I can't seem to get this mod to work, I've got shadow settings but nothing else seems to have changed - bots still spawning off in the distance killing my frames :( Do I need to do something with unity? Everything seems to be correctly installed.

    Thumbs Up 1
    • Same here.

    • Hey, are you also using SAIN? I'm pretty sure the problem here is that SAIN is overriding the limits. As per version patch notes of version 0.2.2:


      "I noticed while working on this update that SAIN disables the standby layer of bots near active ones. So if your targets are not being hit, this is likely the cause. No I won't bypass it."

    • Standalone AI limiter just dropped :thumbup: Ai Limit Seems to have fixed the issue

  • How can i revert the changes made by this mod and uninstall it if i need to?

    • just remove it from bepinex/plugins

    • and it reverts all changes made? I'll assume you meant that it does. Thanks for the reply

  • Please consider updating de-grasser or integrating in here as an option

  • Is this mod compatible with SAIN?

    Thumbs Up 1
  • Is De clutterer included ? If not should I use De clutterer or not ? cause this is what the mod page says:

    Features of this mod are currently broken. It is currently being rewritten. This will soon be deprecated and hidden. Its functionality will be merged into Performance Improvements and thus this will no longer be needed.

    Thumbs Up 1
    • I wouldn't recommend it, its broken. Its functionality hasn't been ported yet

      Thumbs Up 2
    • Noted.

  • please fix the bots limit, they are destroying my fps. (

    Crying 4
    • Somehow my fps in general on 3.10 platform are horrible. 3.9.8 was great.

      Thumbs Up 4
    • +

    • +

    • BSG в ходе ивента с зомби сломали систему появления ботов, теперь фризы везде: в spt, pve и pvp

  • Can the experimental options cause crashes ?

    I have been crashing every 5th or 4th raid.

  • hey dev,i have unrelated question but why bosses just frozen and do nothing even pmcs not shoot them

    Already try to delete ur mod but still the same

    • If you've deleted my mod, then its not my issue. Not sure what else there is to say here.

    • Did you manage to fix it somehow ihave the same problem

    • boss notifier is the one cause that

  • Hi, when using this modification with SAIN and FIKA, bots become insanely dumb, stare at walls, shoot randomly, and weird things happen. The result is the same on older and newer versions of these mods. During testing, I completely wiped all configs and mod files and installed everything from scratch.
    Link

    • Known issue at the moment, either don't use fika or don't use this mod for the time being

    • Using 0.2.0 I don't have this issue (with SAIN and FIKA). 0.2.2 definitely has broken bots (they walk in place and are just generally broken), have not tested 0.2.1