BurgerLUA / burgerstation

My main project. This is the repository for the upcoming BYOND game Burgerstation. Currently in development.
Other
39 stars 119 forks source link

Makes the chat speed up message sending if there are too many messages queued up for a client #689

Closed Gboster-0 closed 3 months ago

Gboster-0 commented 3 months ago

What this PR does

Adds in a for() loop in the part of code that sends messages to the chat, that makes the code send 3 messages at once if the queued message list is over 20 objects

Why it should be added to the game

Currently if you are using a weapon that shoots very rapidly you can end up waiting 20 or more seconds of just standing, waiting to view your XP tab or get any item feedback messages other than combat ones.

This is a bit unintuitive, and can lead players to think that something is lagging while it is not.

Before this PR https://github.com/user-attachments/assets/3f356b4d-04da-4cb6-a111-bc7dd07675cc
After this PR https://github.com/user-attachments/assets/8fda4f06-fdfe-4bd3-b814-02971eaa1ea8