From 0866d485b186bd0a499c283d65530ce9b144c8dc Mon Sep 17 00:00:00 2001 From: rdb Date: Sun, 4 Dec 2022 16:57:55 +0100 Subject: [PATCH] pstats: Set default value for `pstats-max-queue-size` to 4 Otherwise any multithreaded application is dropping frames like mad, since the packets for different frames may be added to the same queue at roughly the same time. --- panda/src/pstatclient/config_pstatclient.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/pstatclient/config_pstatclient.cxx b/panda/src/pstatclient/config_pstatclient.cxx index ecbf6baa79..51ab439e2a 100644 --- a/panda/src/pstatclient/config_pstatclient.cxx +++ b/panda/src/pstatclient/config_pstatclient.cxx @@ -43,7 +43,7 @@ ConfigVariableBool pstats_threaded_write "broken with the threaded network interfaces.")); ConfigVariableInt pstats_max_queue_size -("pstats-max-queue-size", 1, +("pstats-max-queue-size", 4, PRC_DESC("If pstats-threaded-write is true, this specifies the maximum " "number of packets (generally, frames of data) that may be queued " "up for the thread to process. If this is large, the writer "