Skip to content

[EXPERIMENTAL] Decreases Shrapnel looping (might reduce lag)#12196

Open
Venuska1117 wants to merge 1 commit into
cmss13-devs:masterfrom
Venuska1117:exp-less-shrapnel-lag
Open

[EXPERIMENTAL] Decreases Shrapnel looping (might reduce lag)#12196
Venuska1117 wants to merge 1 commit into
cmss13-devs:masterfrom
Venuska1117:exp-less-shrapnel-lag

Conversation

@Venuska1117
Copy link
Copy Markdown
Contributor

@Venuska1117 Venuska1117 commented May 10, 2026

About the pull request

Tries to decrease amount of code looping in hope of decreasing amount of code checked.

There might be some unintended side effects but i am unable to test it on private instance if it comes to actually reducing lag or not.

Explain why it's good for the game

The shorter the loop, the less time is needed to process (i hope this is how it works)

Testing Photographs and Procedure

Did check with debug and breakpoints, and this was the result:

Previous code:

  • 51 lines of code (including spaces)
  • 39 lines of actual code (excluding spaces)
    Amouts of breakpoints called during hedge ravager spike_shed ability.
image

Prototype code:

  • 79 lines of code (including spaces)
  • 60 lines of actual code (excluding spaces)
    Amouts of breakpoints called during hedge ravager spike_shed ability.
image

Tried OB in dense surrounding on almayer, on old and new code, and new code showed around 1s decrease on HE OB blast spread (disipates quicker/quicker spreads)

>Old shrapnel code vs OB HE:
2026-05-10.19-18-18.mp4
>New shrapnel code vs OB HE:
2026-05-10.19-23-23.mp4

Of course this statistics of HE OB are mostly impacted by how many shrapnels are decided to be spawned, but from 3 tests it average to 1 second decrease.

I can be mistaken on this whole thing, i am not code genius to explain it in amazing way, but there are some noticable improvements when tested on HE OB.

Changelog

No player facing changes.

@github-project-automation github-project-automation Bot moved this to Awaiting Review in Review Backlog May 10, 2026
@cmss13-ci cmss13-ci Bot added Missing Changelog Maintainers always document their changes. size/M Denotes a PR that changes 50-199 lines, ignoring generated files. labels May 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Missing Changelog Maintainers always document their changes. size/M Denotes a PR that changes 50-199 lines, ignoring generated files.

Projects

Status: Awaiting Review

Development

Successfully merging this pull request may close these issues.

1 participant