Steamworks > HTTP Requets > Non-Threaded requests
I've been working on a CPU friendly way to consistently complete a threaded HTTP request in the Steamworks extension.
Here is my final snippet. Code:
#include <steamworks> |
Re: Steamworks > HTTP Requets > Non-Threaded requests
Thanks for this!!
|
Re: Steamworks > HTTP Requets > Non-Threaded requests
Code:
Out of principle I'd say the paradigm should be adjusted so your code can handle callbacks as it's all networked anyways and latency is to be expected. Blocking like this on a single threaded platform is almost certainly bad news and doesn't reflect the normalcy of the era. |
Re: Steamworks > HTTP Requets > Non-Threaded requests
Quote:
|
Re: Steamworks > HTTP Requets > Non-Threaded requests
Quote:
SteamWorks only has async HTTP/S functions anyways, so you're more than welcome to blame Valve for forcing this on you. As an aside, snd_debug_sleep isn't present on the Linux version of the CS:GO dedicated server. |
Re: Steamworks > HTTP Requets > Non-Threaded requests
Quote:
Quote:
|
Re: Steamworks > HTTP Requets > Non-Threaded requests
Quote:
|
Re: Steamworks > HTTP Requets > Non-Threaded requests
Just out of curiosity, why would you want to make a HTTP request in no threaded way?
|
Re: Steamworks > HTTP Requets > Non-Threaded requests
Quote:
|
Re: Steamworks > HTTP Requets > Non-Threaded requests
Hi! Installed all but an error still take off my sleep.
'Cannot load matches from a url without the SteamWorks extension running' Can anyone help me? Sorry my english |
All times are GMT -4. The time now is 22:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.