File tree 2 files changed +9
-6
lines changed
2 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -422,7 +422,7 @@ void rate_distortion_optimize(
422
422
if (!ctxo.context .config .rdo_no_multithreading )
423
423
{
424
424
blocks_per_task = astc::min (rdo_ctx.m_ert_params .m_lookback_window_size / ASTCENC_BYTES_PER_BLOCK, rdo_ctx.m_total_blocks );
425
- // There is no way to losslessly partition the job (sequential dependency on previous output)
425
+ // There is no way to losslessly partition the job (sequentially dependent on previous output)
426
426
// So we reserve only one task for each thread to minimize the quality impact.
427
427
blocks_per_task = astc::max (blocks_per_task, (rdo_ctx.m_total_blocks - 1 ) / ctxo.context .thread_count + 1 );
428
428
}
Original file line number Diff line number Diff line change @@ -1326,11 +1326,14 @@ static void print_astcenc_config(
1326
1326
printf (" Refinement cutoff: %u iterations\n " , config.tune_refinement_limit );
1327
1327
printf (" Compressor thread count: %d\n " , cli_config.thread_count );
1328
1328
printf (" RDO: %s\n " , config.rdo_enabled ? " Enabled" : " Disabled" );
1329
- printf (" RDO multithreading: %s\n " , config.rdo_no_multithreading ? " Disabled" : " Enabled" );
1330
- printf (" RDO quality: %g\n " , static_cast <double >(config.rdo_quality ));
1331
- printf (" RDO dictionary size: %u bytes\n " , config.rdo_dict_size );
1332
- printf (" RDO max error scale: %g\n " , static_cast <double >(config.rdo_max_smooth_block_error_scale ));
1333
- printf (" RDO max standard deviation: %g\n " , static_cast <double >(config.rdo_max_smooth_block_std_dev ));
1329
+ if (config.rdo_enabled )
1330
+ {
1331
+ printf (" RDO multithreading: %s\n " , config.rdo_no_multithreading ? " Disabled" : " Enabled" );
1332
+ printf (" RDO quality: %g\n " , static_cast <double >(config.rdo_quality ));
1333
+ printf (" RDO dictionary size: %u bytes\n " , config.rdo_dict_size );
1334
+ printf (" RDO max error scale: %g\n " , static_cast <double >(config.rdo_max_smooth_block_error_scale ));
1335
+ printf (" RDO max standard deviation: %g\n " , static_cast <double >(config.rdo_max_smooth_block_std_dev ));
1336
+ }
1334
1337
printf (" \n " );
1335
1338
}
1336
1339
}
You can’t perform that action at this time.
0 commit comments