spacemeowx2 / slp-server-rust

Switch-lan-play Server written in Rust
https://github.com/spacemeowx2/switch-lan-play
115 stars 16 forks source link

make multi thread #17

Closed D3fau4 closed 4 years ago

D3fau4 commented 4 years ago

hello, is there any chance to make a multi thread process like Worker from NodeJS or Clouster to distribute the connections in different threads on the same port? because when you have multiple connections from the same room/game and send a lot of packages (like Animal Crossing) makes the server to be late in processing packets because it only works in a single thread making the client crash and take a while to recover. That is why it is better to distribute the process in several threads allowing to process all packages.