Skip to content

Commit 77942a8

Browse files
committed
Reduce thread count.
1 parent 9f3e9d1 commit 77942a8

File tree

2 files changed

+17
-7
lines changed

2 files changed

+17
-7
lines changed

source/base/codec/video_decoder_vpx.cc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -95,16 +95,16 @@ std::unique_ptr<VideoDecoderVPX> VideoDecoderVPX::createVP9()
9595
//--------------------------------------------------------------------------------------------------
9696
VideoDecoderVPX::VideoDecoderVPX(proto::VideoEncoding encoding)
9797
{
98-
LOG(LS_INFO) << "VPX(" << encoding << ") Ctor";
99-
codec_.reset(new vpx_codec_ctx_t());
100-
10198
uint32_t thread_count = std::thread::hardware_concurrency();
102-
if (thread_count >= 12)
103-
thread_count = 8;
104-
else if (thread_count >= 8)
99+
if (thread_count >= 8)
105100
thread_count = 4;
106-
else
101+
else if (thread_count >= 4)
107102
thread_count = 2;
103+
else
104+
thread_count = 1;
105+
106+
LOG(LS_INFO) << "VPX(" << encoding << ") Ctor (thread_count=" << thread_count << ")";
107+
codec_.reset(new vpx_codec_ctx_t());
108108

109109
vpx_codec_dec_cfg_t config;
110110
config.w = 0;

source/client/translations/aspia_client_pt.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3202,27 +3202,31 @@
32023202
<source>%n seconds</source>
32033203
<translation type="unfinished">
32043204
<numerusform></numerusform>
3205+
<numerusform></numerusform>
32053206
</translation>
32063207
</message>
32073208
<message numerus="yes">
32083209
<location filename="../ui/router_manager/router_manager_window.cc" line="1767"/>
32093210
<source>%n minutes</source>
32103211
<translation type="unfinished">
32113212
<numerusform></numerusform>
3213+
<numerusform></numerusform>
32123214
</translation>
32133215
</message>
32143216
<message numerus="yes">
32153217
<location filename="../ui/router_manager/router_manager_window.cc" line="1768"/>
32163218
<source>%n hours</source>
32173219
<translation type="unfinished">
32183220
<numerusform></numerusform>
3221+
<numerusform></numerusform>
32193222
</translation>
32203223
</message>
32213224
<message numerus="yes">
32223225
<location filename="../ui/router_manager/router_manager_window.cc" line="1792"/>
32233226
<source>%n days</source>
32243227
<translation type="unfinished">
32253228
<numerusform></numerusform>
3229+
<numerusform></numerusform>
32263230
</translation>
32273231
</message>
32283232
<message>
@@ -3380,6 +3384,7 @@
33803384
<source>Password can not be empty and should not exceed %n characters.</source>
33813385
<translation type="unfinished">
33823386
<numerusform></numerusform>
3387+
<numerusform></numerusform>
33833388
</translation>
33843389
</message>
33853390
<message>
@@ -3392,6 +3397,7 @@
33923397
<source>The password must contain lowercase and uppercase characters, numbers and should not be shorter than %n characters.</source>
33933398
<translation type="unfinished">
33943399
<numerusform></numerusform>
3400+
<numerusform></numerusform>
33953401
</translation>
33963402
</message>
33973403
<message>
@@ -3694,27 +3700,31 @@
36943700
<source>%n seconds</source>
36953701
<translation type="unfinished">
36963702
<numerusform></numerusform>
3703+
<numerusform></numerusform>
36973704
</translation>
36983705
</message>
36993706
<message numerus="yes">
37003707
<location filename="../ui/sys_info/sys_info_widget.cc" line="143"/>
37013708
<source>%n minutes</source>
37023709
<translation type="unfinished">
37033710
<numerusform></numerusform>
3711+
<numerusform></numerusform>
37043712
</translation>
37053713
</message>
37063714
<message numerus="yes">
37073715
<location filename="../ui/sys_info/sys_info_widget.cc" line="144"/>
37083716
<source>%n hours</source>
37093717
<translation type="unfinished">
37103718
<numerusform></numerusform>
3719+
<numerusform></numerusform>
37113720
</translation>
37123721
</message>
37133722
<message numerus="yes">
37143723
<location filename="../ui/sys_info/sys_info_widget.cc" line="168"/>
37153724
<source>%n days</source>
37163725
<translation type="unfinished">
37173726
<numerusform></numerusform>
3727+
<numerusform></numerusform>
37183728
</translation>
37193729
</message>
37203730
<message>

0 commit comments

Comments
 (0)