c/main: Remove unused fields

Tested-by: Boris-Chengbiao Zhou <bobo1239@web.de>
This commit is contained in:
Jakob Bornecrantz 2021-03-09 17:45:45 +00:00
parent 003b70d05e
commit a6da40de50
2 changed files with 0 additions and 19 deletions
src/xrt/compositor/main

View file

@ -443,8 +443,6 @@ compositor_layer_commit(struct xrt_compositor *xc, int64_t frame_id, xrt_graphic
c->last_frame_time_ns = os_monotonic_get_ns();
c->app_profiling.last_end = c->last_frame_time_ns;
//! @todo do a time-weighted average or something.
c->expected_app_duration_ns = c->app_profiling.last_end - c->app_profiling.last_begin;
COMP_SPEW(c, "LAYER_COMMIT finished drawing at %8.3fms", ns_to_ms(c->last_frame_time_ns));
@ -1313,9 +1311,6 @@ xrt_gfx_provider_create_system(struct xrt_device *xdev, struct xrt_system_compos
comp_settings_init(&c->settings, xdev);
c->last_frame_time_ns = os_monotonic_get_ns();
c->frame_overhead_ns = 2000000;
//! @todo set this to an estimate that's better than 6ms
c->expected_app_duration_ns = 6000000;
// Need to select window backend before creating Vulkan, then

View file

@ -212,9 +212,6 @@ struct comp_compositor
int64_t last_end;
} app_profiling;
//! The time our compositor needs to do rendering
int64_t frame_overhead_ns;
struct
{
//! Current Index for times_ns.
@ -238,17 +235,6 @@ struct comp_compositor
struct comp_frame rendering;
} frame;
/*!
* @brief Estimated rendering time per frame of the application.
*
* Set by the begin_frame/end_frame code.
*
* @todo make this atomic.
*/
int64_t expected_app_duration_ns;
//! The last time we provided in the results of wait_frame
int64_t last_next_display_time;
struct
{
//! Thread object for safely destroying swapchain.