From a6da40de505b58c28f50dc578d36b7b2f0887ad7 Mon Sep 17 00:00:00 2001 From: Jakob Bornecrantz <jakob@collabora.com> Date: Tue, 9 Mar 2021 17:45:45 +0000 Subject: [PATCH] c/main: Remove unused fields Tested-by: Boris-Chengbiao Zhou <bobo1239@web.de> --- src/xrt/compositor/main/comp_compositor.c | 5 ----- src/xrt/compositor/main/comp_compositor.h | 14 -------------- 2 files changed, 19 deletions(-) diff --git a/src/xrt/compositor/main/comp_compositor.c b/src/xrt/compositor/main/comp_compositor.c index 467a10c0a..3ba115774 100644 --- a/src/xrt/compositor/main/comp_compositor.c +++ b/src/xrt/compositor/main/comp_compositor.c @@ -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 diff --git a/src/xrt/compositor/main/comp_compositor.h b/src/xrt/compositor/main/comp_compositor.h index 8e9d21f64..b24513802 100644 --- a/src/xrt/compositor/main/comp_compositor.h +++ b/src/xrt/compositor/main/comp_compositor.h @@ -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.