mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-30 18:38:32 +00:00
c/main: Remove unused fields
Tested-by: Boris-Chengbiao Zhou <bobo1239@web.de>
This commit is contained in:
parent
003b70d05e
commit
a6da40de50
src/xrt/compositor/main
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue