'Warning Player X unhandled shitload of usermessages' or something like that, it happens after a while the server has quite some people and starts lagging like hell, what am I doing wrong? I don't seem to not close any usermessage.
Missing a usermessage.Hook on client for that user message.
Migrate to net library.
[QUOTE=PaellaPablo;38846784]Migrate to net library.[/QUOTE]
Why? Usermessages are just fine as long as your using them correctly.
[QUOTE=Aide;38846845]Why? Usermessages are just fine as long as your using them correctly.[/QUOTE]
Net library is worth it in the long run and is just as easy to use.
It is the same difficulty and is just more work to change from umsg to net. Afaik, using net doesn't give a totally noticeable improvement on speed besides the fact umsg queues them.
[QUOTE=Aide;38846845]Why? Usermessages are just fine as long as your using them correctly.[/QUOTE]
Not that I care what you guys use, but from what I tested net is faster than usermessages, net doesn't queue so things don't bog up with more traffic, and net doesn't have a limit.
So therefore, it is usermessages on crack, why not use them?
I use [B]net[/B] for [I]server->client[/I] and [B]console commands[/B] for [I]client->server[/I]
[QUOTE=find me;38849165]Not that I care what you guys use, but from what I tested net is faster than usermessages, net doesn't queue so things don't bog up with more traffic, and net doesn't have a limit.
So therefore, it is usermessages on crack, why not use them?
I use [B]net[/B] for [I]server->client[/I] and [B]console commands[/B] for [I]client->server[/I][/QUOTE]
Oh my god, people are going to notice the 0.001 speed difference, how cruel, when garrysmod already uses slow networking.
They'll notice when their usermessages start queuing and appearing 10 seconds behind time. Would I convert every usermessage I have? No. Would I ever use usermessages for any new things? No.
I've never had that problem. I've never had to network that much information.
Large tables of data and information regarding the server, adverts, settings, player info then use net library, small things like cash balance or join time etc, small things such as text, using usermessage library will be sufficient enough.
[QUOTE=Aide;38849237]I've never had that problem. I've never had to network that much information.[/QUOTE]
If the server has a quick lag burst, messages get queued up which can cause the system to fall behind.
Sorry, you need to Log In to post a reply to this thread.