Implement refresh rate change

This commit is contained in:
Patrick Nicolas
2025-01-07 20:07:06 +01:00
parent c545db61d7
commit ad9300f842
7 changed files with 87 additions and 34 deletions
+2 -4
View File
@@ -78,13 +78,12 @@ struct pseudo_swapchain
struct wivrn_comp_target : public comp_target
{
to_headset::video_stream_description desc{};
wivrn_pacer pacer;
std::optional<wivrn_vk_bundle> wivrn_bundle;
vk::raii::CommandPool command_pool = nullptr;
float fps;
int64_t current_frame_id = 0;
pseudo_swapchain psc;
@@ -95,14 +94,13 @@ struct wivrn_comp_target : public comp_target
static std::vector<const char *> wanted_device_extensions;
std::vector<encoder_settings> settings;
to_headset::video_stream_description desc{};
std::list<std::jthread> encoder_threads;
std::vector<std::shared_ptr<video_encoder>> encoders;
wivrn::wivrn_session & cnx;
std::unique_ptr<wivrn_foveation_renderer> foveation_renderer = nullptr;
wivrn_comp_target(wivrn::wivrn_session & cnx, struct comp_compositor * c, float fps);
wivrn_comp_target(wivrn::wivrn_session & cnx, struct comp_compositor * c);
~wivrn_comp_target();
void on_feedback(const from_headset::feedback &, const clock_offset &);