peq42_

Yeet
Veteran
Joined
Feb 5, 2016
Messages
540
Reaction score
326
First Language
Portuguese(BR)
Primarily Uses
RMMV
One common use of multithreading in games is networking(usually because they've a system similar to javascript, where there's one mainloop that controls the drawings and the input read).

So, considering that websockets add a bit more overhead than a normal TCP connection, and that I always do encryption of messages being sent and decryption of messages being received(which usually takes less than a ms, at least the encrypt/decrypt part) should I move websockets and encryption/decryption of messages to a webworker? And in case its a no, why do people do move network handling to a sepparate thread for games made using non-web technologies?

(Btw doing this would probably add around 0.5ms extra time to deal with messages, but the execution would be in a separate thread, thus giving the main thread a few extra milisseconds to work on frames.)
 

Latest Threads

Latest Posts

Latest Profile Posts

HexMozart88 wrote on RHachicho's profile.
Hey wait a minute, I remember you!
Granny.gif
Nap! Knit! Read! Repeat!
Granny's got a busy life now :3
Бас Лого.png
Reflections on the topic of choosing the path of the main character )
Now I want to change back to a Class system again xD Around and around we go!

Forum statistics

Threads
121,905
Messages
1,145,076
Members
160,168
Latest member
estanislao21
Top