Fix HUD text display taking over other plugins' display #444
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related to #419, but does not really fix it because MHUD is still at fault.
The reuse logic with 6 channels is fine, and is not why the HUD text was unable to be displayed.
The cause is the client's internal message buffer which is 16 slots long and shared between 6 channels at once. The message in the buffer will only clear once the hold time is over. So a plugin sending one HUD message lasting for 0.5 seconds will immediately fill the buffer (that's 64 messages, which is way past 16), leaving no place for other plugins.
The reason joining team or sending
round_start
event temporarily fixes the issue is because they trigger the message buffer wipe, but they come with other unwanted side effects.Reference