···116116 uint64_t adjust_non_miss_ns;
117117118118 /*!
119119- * The target amount of GPU margin we want.
119119+ * Exrta time between end of draw time and when the present happens.
120120 */
121121- uint64_t min_margin_ns;
121121+ uint64_t margin_ns;
122122123123 /*!
124124 * Frame store.
···155155static uint64_t
156156calc_total_app_time(struct display_timing *dt)
157157{
158158- return dt->app_time_ns + dt->min_margin_ns;
158158+ return dt->app_time_ns + dt->margin_ns;
159159}
160160161161static uint64_t
···328328 return;
329329 }
330330331331- // We want the GPU work to stop at min_margin_ns.
331331+ // We want the GPU work to stop at margin_ns.
332332 if (is_within_of_each_other( //
333333 f->present_margin_ns, //
334334- dt->min_margin_ns, //
334334+ dt->margin_ns, //
335335 dt->adjust_non_miss_ns)) {
336336 // Nothing to do, the GPU ended it's work +-adjust_non_miss_ns
337337- // of min_margin_ns before the present started.
337337+ // of margin_ns before the present started.
338338 return;
339339 }
340340341341 // We didn't miss the frame but we were outside the range adjust the app time.
342342- if (f->present_margin_ns > dt->min_margin_ns) {
342342+ if (f->present_margin_ns > dt->margin_ns) {
343343 // Approach the present time.
344344 dt->app_time_ns -= dt->adjust_non_miss_ns;
345345 } else {
···611611 // When not missing frames but adjusting app time at these increments
612612 dt->adjust_non_miss_ns = get_percent_of_time(estimated_frame_period_ns, 2);
613613 // Extra margin that is added to app time.
614614- dt->min_margin_ns = get_percent_of_time(estimated_frame_period_ns, 8);
614614+ dt->margin_ns = get_percent_of_time(estimated_frame_period_ns, 8);
615615616616 *out_uft = &dt->base;
617617