Use Z_BEST_SPEED for ZRLE

The default strategy loads the CPU too much when streaming at 60 FPS.
tight-png
Andri Yngvason 2019-10-12 15:47:35 +00:00
parent abac726998
commit 007578052c
1 changed files with 1 additions and 1 deletions

View File

@ -748,7 +748,7 @@ static void on_connection(uv_stream_t *server_stream, int status)
client->ref = 1; client->ref = 1;
client->server = server; client->server = server;
if (deflateInit(&client->z_stream, Z_DEFAULT_COMPRESSION) != Z_OK) { if (deflateInit(&client->z_stream, Z_BEST_SPEED) != Z_OK) {
free(client); free(client);
return; return;
} }