Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deletes unneeded instances to maybe save the server from being overrun by ghost scoops and cones if such a thing is not solved by garbage collection #22898

Merged

Conversation

Scrambledeggs00
Copy link
Contributor

Document the changes in your pull request

While helping me with my food cart PR, bug eating lizard pointed out that I was not deleting useless instances of items and that it could possibly overload the server with tons of instanced items. Welp, I copied said code from my ice cream vat code, some I've come back and fixed it so it deletes the instances once they're not needed anymore.

Why is this good for the game?

If it was possible to overload the server before due to my crappy code, it shouldn't be possible now :]

Testing

Everything seems to work fine with the qdel()'s and I'm not sure how I'd look to make sure the instances are actually being deleted.
image
image

Changelog

🆑
bugfix: Possibly fixes a bug that could cause the ice cream vat to overload the server with instanced cones and scoops
/:cl:

@Yogbot-13 Yogbot-13 added the Fix This fixes an issue. Please link issues in fix PRs label Dec 30, 2024
@ToasterBiome ToasterBiome merged commit b89deb3 into yogstation13:master Jan 11, 2025
15 checks passed
Yogbot-13 added a commit that referenced this pull request Jan 11, 2025
@Scrambledeggs00 Scrambledeggs00 deleted the ice-cream-vat-instancing-fix branch January 11, 2025 02:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fix This fixes an issue. Please link issues in fix PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants