Skip to content

Convert all umsg to net#3586

Draft
Astralcircle wants to merge 12 commits intowiremod:masterfrom
Astralcircle:umsgtonet
Draft

Convert all umsg to net#3586
Astralcircle wants to merge 12 commits intowiremod:masterfrom
Astralcircle:umsgtonet

Conversation

@Astralcircle
Copy link
Copy Markdown
Contributor

Converts all umsg to net to modernize the code and make networking a little cheaper (not tested yet)

@thegrb93
Copy link
Copy Markdown
Contributor

thegrb93 commented Apr 16, 2026

net has downsides to umsg, e.g. it can trigger on the client before an entity it's networking is actually networked. umsg should be preferred for applications where data sent is small.

@Astralcircle
Copy link
Copy Markdown
Contributor Author

Does it make a difference? Entities outside of PVS will be invalid regardless of the networking method used

@thegrb93
Copy link
Copy Markdown
Contributor

I might be misremembering, but I think umsg is safer from errors or messages that can't complete due to invalid entity. Starfall uses a queue of its own to retain net messages until entity is valid, but I probably could've just used umsg the whole time instead.

@Astralcircle Astralcircle marked this pull request as ready for review April 16, 2026 16:24
@Astralcircle Astralcircle marked this pull request as draft April 16, 2026 18:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants