Raised This Month: $51 Target: $400
 12% 

Cross-Game Chatter v1.6 [Discord <-> AMXX]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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 #11

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 online now
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:17.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode