Skip to content

Subsystem upgrades#580

Draft
Ossa88 wants to merge 5 commits intoPentestSS13:masterfrom
Ossa88:subsystem-upgrades
Draft

Subsystem upgrades#580
Ossa88 wants to merge 5 commits intoPentestSS13:masterfrom
Ossa88:subsystem-upgrades

Conversation

@Ossa88
Copy link
Collaborator

@Ossa88 Ossa88 commented Feb 20, 2026

About The Pull Request

This is gonna be a rather scary PR

Garbage Subsystem:
Wait time decreased from 2 to 1 Second
Priority increased from 15 to 10
The time between a reference getting cleaned and it failing decreased from 5 min to 30 seconds.

Goal: The system should hopefully fire faster and with a higher priority... and not allow too much to build up before it rechecks the GC_CHECK_QUEUE from getting too big.

NPC Pool Subsystem:

  • idlenpcpool is now processing both ai_idle and ai_z_off
  • reduced its check interval from 60 to 30 seconds
  • ai_z_off mobs only check wake conditions and do not process movement
  • and properly clearing nulls off both lists
  • mobs with ai_z_off are skipped entirely, no movement... no actions... no speech
  • smarter wake logic: players within 15 tiles will force wake simple mobs around them
  • and this is applied to all simple animals, including non hostiles.

Goal: The system should properly mark mobs as ai_z_off... a condition when no players are on the zlevel to stop processing the AI.
This should be functional on arrival of a planet, leaving a planet... and if the planet is locked due to admin or mission items.. Those mobs should no longer cause long term load issues.
Note: this does not fight back against hivebots since they are basic mobs... thats another subsystem

Machine Subsystem:

This is the scary one.

Mahines not located on ships and outpost will not fire unless a player is on their zlevel... unless they are locked as a "critical machine"

Critical machines are things like the SM, Singulo and so forth... but we need to check and verify.

The goal is to have fluff machines, such as vending machines and the sort from being a resource hog when players are not even there..

This is a draft... i need to keep working before I feel safe even trying to TM this.

Why It's Good For The Game

Faster Server processing

Changelog

🆑
/:cl:

@Ossa88 Ossa88 requested a review from Constellado as a code owner February 20, 2026 01:50
@Ossa88 Ossa88 marked this pull request as draft February 20, 2026 01:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant