File tree Expand file tree Collapse file tree 2 files changed +9
-6
lines changed Expand file tree Collapse file tree 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(
422422 if (!ctxo.context .config .rdo_no_multithreading )
423423 {
424424 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)
426426 // So we reserve only one task for each thread to minimize the quality impact.
427427 blocks_per_task = astc::max (blocks_per_task, (rdo_ctx.m_total_blocks - 1 ) / ctxo.context .thread_count + 1 );
428428 }
Original file line number Diff line number Diff line change @@ -1326,11 +1326,14 @@ static void print_astcenc_config(
13261326 printf (" Refinement cutoff: %u iterations\n " , config.tune_refinement_limit );
13271327 printf (" Compressor thread count: %d\n " , cli_config.thread_count );
13281328 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+ }
13341337 printf (" \n " );
13351338 }
13361339}
You can’t perform that action at this time.
0 commit comments