Lag reduction script

[Open Assets] Lag reduction script 3a

What permissions do you give others to modify and/or maintain your submission?
Modify: YES - Maintain: YES - I give permission for my entire submission to be modified by others or used in their own work. I give permission for my entire submission to be maintained by others as well.
This lua script reduces lag from maps significantly by deactivating all objects on spawn and only activating them while they're within a certain radius of any player. Objects activated by proximity will deactive a few seconds after the player leaves the radius.

Comes in two flavours: Regular is recommended for most people, STRICT has a more powerful effect but may break things.

Use the perfstats 2 console command to compare map performance.

Technically works in multiplayer but with diminishing returns based on player count. Will probably actually make lag worse with a high amount of players.

If you want to change the activation range, modify the dist variable in the script.

-Performance comparison in CEZ2-
Baseline:
srb20003.png

Lagkiller:
srb20002.png
Author
pastel
Downloads
5,767
Views
12,857
First release
Last update

More resources from pastel

Share this resource

Latest updates

  1. oops

    here's a hotfix because the retractable spikes still didn't work actually i made sure to print...
  2. this got featured so i guess i should actually maintain it

    fixed CEZ chain wild ride fixed retractable spikes even better script optimisation than before...
  3. blacklisted certain objects

    Disabled the script for bosses, flamethrowers, and OLDC hubs due it it breaking them. Note that...

Latest reviews

Pookie does this work on Android just asking 😘
Upvote 0
My potatoe pc finnaly said thanks to me
Upvote 0
This works MIRACLES on Speed Highway.
Upvote 0
as someone who likes to run srb2 with like 20 mods, this REALLY helps as it makes maps like RVZ and CEZ run smoother than 15 fps
very good very nice 10/10
Upvote 2
Underappreciated and probably ESSENTIAL if you're playing certain 2023 OLDC maps on a toaster. Actually makes Twilight Hill run as it should!
Upvote 2
Man Thanks! It worked very well!
Upvote 1
as expected from katmint, this addon is outstanding and really makes a smooth single player experience.
Upvote 2
Back
Top