FS-8876 #resolve [Bind video threads to CPU alternating]

This commit is contained in:
Anthony Minessale
2016-02-25 16:11:28 -06:00
parent 9314001efd
commit 3d7fbd17be
2 changed files with 40 additions and 3 deletions
+2 -2
View File
@@ -304,7 +304,7 @@ static switch_status_t init_decoder(switch_codec_t *codec)
// context->decoder_init = 0;
//}
cfg.threads = switch_core_cpu_count();
cfg.threads = 1;//(switch_core_cpu_count() > 1) ? 2 : 1;
if (!context->is_vp9) { // vp8 only
// dec_flags = VPX_CODEC_USE_POSTPROC;
@@ -391,7 +391,7 @@ static switch_status_t init_encoder(switch_codec_t *codec)
config->rc_target_bitrate = context->bandwidth;
config->g_lag_in_frames = 0;
config->kf_max_dist = 2000;
config->g_threads = (cpus > 1) ? 2 : 1;
config->g_threads = 1;//(cpus > 1) ? 2 : 1;
if (context->is_vp9) {
//config->rc_dropframe_thresh = 2;