Featured Performance Improvements 0.1.3

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.


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.


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.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

  • Sometimes when using the scope supersampling, if I set the amount to 0% it will freeze the rendering of my screen and force me to close the game and reopen it. The simplest workaround for me is to just disable it outright if I'm going to disable DLSS, though if I do this in-raid it still sometimes causes the screen freeze. It happens most notably when I hit the key combo that changes scopes (CTRL + RMB)


    I also notice stuttering is back when shooting bots with SAIN 3.2.0 RC4 and this mod enabled at the same time. Going to test RC5 later.

  • When I play with my friend using the FIKA mod, and both of us have the mod installed, my friend is the host. After he dies, I notice that most of the AI becomes inactive and won’t shoot at me.

    • I haven't tested this on Fika, nor support Fika for it right now. Disable the AI limiter in this mod and use Fika's.

    • Will this mod support FIKA in the future? If not, could you add a feature to automatically lift AI restrictions after the player dies and re-enable AI restrictions after exiting the raid?

    • I'll see what I can do, but Fika is not a high priority for me right now among other things I'm working on.

    • Okay, thank you for your reply.

    • I opted to force disable this mods AI limiter if Fika is present after having a discussion with Lacy. As to not interfere or cause bugs with co-op.

  • The bot death stutter is still there. To troubleshoot I've redownloaded previous versions of the mod as well as resetting the boot.config file but the issue remains. I have also used Process lasso, ram cleaning software, and unparking all my cores but to no avail. Any ideas?

    At first the mod was working perfectly fine in this regard but now the issue is back in full swing, perhaps other bot oriented mods might be causing some issues?

    • We determined that this was perfectly compatible with the upcoming sain release, so I'm not sure why that would be the case. You're the first of a few thousand people who have used this to say that. What are your specs?

    • i9-13950HX

      RTX 4060

      16GB RAM


      It appears I have been able to alleviate the stutters a bit by removing BigBrain. The waypoints mod seems to behave just fine, but I'll do some more testing

  • When using the mod i cant load past the loading screen when launching

    • This mod doesn't even do anything until you're in raid, so don't know why that would be.

  • I see that the solution to fixing the black flicker when scoping in when the Dynamic Resolution setting is enabled is to simply have the mod's config matched with your own settings; but what if I don't have those settings enabled at all to begin with? I don't use DLSS or FSR, so they're both off in the mod/settings and it still flickers is what I'm saying.

    • There was a bug pertaining to that feature, I have it fixed locally. Will be in the next update.

  • My previous video is already in the description of this mod, but here's a more fitting video that compares vanilla vs with the mod directly. #shamelessad


    https://www.youtube.com/watch?v=7C7cYgO_ySg

  • Thanks again!

    Just wondering why the dynamic resolution for scopes always causes a sudden stutter or a blink of a black screen when aiming? Also, it doesn't seem to significantly improve FPS. Is this due to my settings, or because I'm not GPU-bottlenecked?

    • Its because the DLSS/FSR setting used in the mod settings needs to match what you have set in the EFT options. its caused by it switching modes on the fly which causes that black flicker

      Thumbs Up 1
    • To the latter, not sure entirely. If there's no change in FPS you likely don't need it

    • Thanks!

  • Thanks for the great mod! A must have for 3.10. May I request a fix for a BSG weirdness? Somehow scrolling mouse wheel in inventory also affects the weapon scope zoom, thus after changing zoom keybinds to single mouse scroll my scope always ends up in random zoom levels after scrolling up and down while looting a dead body, which is very annoying. This thing has been bugging me since vanilla pve, would be really grateful if someone can get rid of it.

    • This is outside the scope of this mod. I'm fixing performance related issues, not general game bugs

    • Understood, makes sense. Thank you for the mod anyway!

  • with this mod i don't have to worry about setting GPU on fire by playing Factory low graphic w declutter

    Thank you

    Heart 1
  • Just wanted to say that I saw a recommendation to use lossless scaling to improve performance. Currently I am using framegen x2 with that + your mod but with AI limiter disabled, since it's not needed for me at moment. Used to get 70fps on ground zero, now I get 120. There is 1 frame of extra delay, but I can't even tell.

  • не получается скачать, браузер говорит что там вирус и КАТЕГОРИЧЕСКИ запрещает скачать((( хотя предыдущие версии нормально скачивались и все защитные программы отключены и удалены у меня.



    ;(

    • I'm not sure why the most recent version got flagged as a virus, its safe to download if you can allow it somehow.

    • обычно, когда при скачивании чего-то браузер подозревает вирус, я мог продолжить скачивание принудительно, а тут не получается никак((

    • Бро, не знаю в чём было дело, но сейчас архив скачался успешно. не парься, проблема явно с моей стороны была.

      Thumbs Up 1
  • Hey!can I translate your mod and upload it to oddba.com? Some people have network issues and cannot access sp-tarkov.com. I will credit the original author and include the mod link.

  • Hey, i have problem wherein the latest version of the file is being scanned with a virus. Ive used different browsers as well.

    • I'm not sure why the most recent version got flagged as a virus, its safe to download if you can allow it somehow.

  • Your are a genius! Thanks for your work!

    Heart 1
  • Is there a 3.9.x version?

  • So far it works fine with the SAIN fork, haven't noticed anything out of the ordinary.

    Thumbs Up 1
  • I assume this doesn't work with the SAIN fork, right? Or would it work if I disabled the AI limiter and used the rest of the mod?

    • People have been using it with the test build and have reported no issues to me thus far. Should be fine.

    • Oh, neat, thanks for the info! Will let you know if anything breaks.

  • oh wow, LPVOS were NOT applying fsr/dlss? no wonder scoping in was destroying my frames on my weak gpu. thanks a lot for your work.

    Heart 1
  • Cool, does it work like DERP mod?

  • That dynamic resolution setting works amazingly for scoping in, but unfortunately there's a black flicker when it's activated and I ADS.

    • Set it to the same option that you have set in the EFT graphics settings, it flickers because its changing modes

  • На других картах все нормально только Резерв. но по моему это баг 3.10 чистую установку делал то же самое.

  • seriously THANK YOU the lag and frame drops were driving me fu#$ing bananas if you are having an issue with frames or stuttering DOWNLOAD THIS NOW i noticed an immediate difference after all day trying 20 to 30 different graphics setting this fixed the stuttering completely and frames are comparable to 3.8-3.9 10/10 would recommend


    edit: WTF don't bsg get these modders to work on there game these modders fix this stupid shit Nikita fu$%s up 100% of the time

    Heart 1
  • Not sure if this mod is the cause, but after installing I'm encountering PMC bots running in circles or into walls every raid, and maybe 50-60% reduction in enemy encounters, I'm assuming because they are stuck somewhere running in circles not moving around the map.

    • This mod has an AI limiter, please read the description. Also bots without sain run into objects all the time, such is life.

  • 3 рейда подряд только одни падальщики,странно попробую удалить,может поможет

  • На Резерве при установке ботов на много нет совсем ЧВК только падальщики......

  • Hi first time modding anything, what folder to i place this file into? I have the UnityTool kit but can't find where to put this one. Thank you!

    • just put it in your folder where you installed SPT. its allready packt to put it in the right place there

  • Is the AI limiter Fika friendly?

    • No idea. I don't test against fika

    • Ya seems to work great, just need to turn off the ai limiter. Appreciate the mod!

  • Latest update is exactly what my crappy pc needed! Thank you!

    Heart 1
  • My old PC now says your name and says hello when I start SPT! Great job!!!

    Heart 1
  • OH YEEEA ANOTHER UPDATE LETS GOOOOO

    Heart 1