View Single Post
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 04-04-2020 , 10:22   Re: AmxXDMT (Amx Mod X Discord Message Transmitter) v1.0 (Stable)
Reply With Quote #21

Quote:
Originally Posted by Relaxing View Post
Take a look at this thread and come up with a way to stop using set_task every 0.1s.
https://forums.alliedmods.net/showthread.php?t=169315
Spoiler
You probably meant:
"Take a look at this thread and come up with a way to stop using set_task every 0.1s by using a module that does pretty much the same thing".

Sockets are a way of sending/receiving data over a network. Networks are unreliable and have lots of delays. You can not know when data is available without waiting for it, which means continuously checking to see if it's available or blocking until it is. Blocking in the main thread is a really bad idea since the server will "freeze" until the data arrives.
__________________

Last edited by HamletEagle; 04-04-2020 at 10:27.
HamletEagle is offline