Skip to content

Tokio for games #4004

Answered by Darksonn
terrarier2111 asked this question in Q&A
Jul 29, 2021 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

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.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@terrarier2111
Comment options

Answer selected by Darksonn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants