Skip to content

Commit

Permalink
Reduce tokio threads to 2 on client
Browse files Browse the repository at this point in the history
  • Loading branch information
zmerp committed Jul 18, 2023
1 parent cefd92e commit d588250
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion alvr/client_core/src/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,11 @@ fn connection_pipeline(
recommended_view_resolution: UVec2,
supported_refresh_rates: Vec<f32>,
) -> ConResult {
let runtime = Runtime::new().map_err(to_con_e!())?;
let runtime = tokio::runtime::Builder::new_multi_thread()
.worker_threads(2)
.enable_all()
.build()
.map_err(to_con_e!())?;

let (mut proto_control_socket, server_ip) = {
let config = Config::load();
Expand Down

0 comments on commit d588250

Please sign in to comment.