Tokio for games #4004
Answered
by
Darksonn
terrarier2111
asked this question in
Q&A
Tokio for games
#4004
-
Does it make sense to use tokio for a game running on tcp? |
Beta Was this translation helpful? Give feedback.
Answered by
Darksonn
Jul 29, 2021
Replies: 1 comment 1 reply
-
It can make sense to use Tokio for the networking portions of a game, but generally you would run the game logic on a dedicated thread. If you want to use the main thread for winit with Tokio on a background thread, you can use the techniques outlined here. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Darksonn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It can make sense to use Tokio for the networking portions of a game, but generally you would run the game logic on a dedicated thread. If you want to use the main thread for winit with Tokio on a background thread, you can use the techniques outlined here.