File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1709,7 +1709,6 @@ void DollController::on_snapshot_applied(
17091709 ENSURE_MSG (input_count > 0 , " This function is not supposed to work with 0 inputs. Report this bug." )
17101710
17111711 // 3. Fetch the best input to start processing.
1712- // TODO consider to scale this dynamically to slowly catchup with the server, as too drastic change may result in a less stable simulation.
17131712 const int optimal_input_count = p_frame_count_to_rewind + optimal_queued_inputs;
17141713
17151714 // The lag compensation algorithm offsets the available
@@ -1721,10 +1720,10 @@ void DollController::on_snapshot_applied(
17211720 // It has less inputs than the optimal input count defined.
17221721 // In this case the offset, mention above, is going to be positive;
17231722 // making sure the available frames_input are used at the end of the processing
1724- // so the `optimal_queued_inputs` is left at the endo of the rewinding.
1723+ // so the `optimal_queued_inputs` is left at the end of the rewinding.
17251724 const int missing_inputs = optimal_input_count - input_count;
1726-
17271725 queued_instant_offset = missing_inputs;
1726+
17281727 } else {
17291728 // It has more inputs than the optimal input count defined.
17301729 // In this case the offset is negative, meaning it throws away all the
You can’t perform that action at this time.
0 commit comments