pub struct CandidateScore { /* private fields */ }Expand description
Comparable real-presentation performance summary for one candidate under a specific (scene_profile, display_mode_hz).
Implementations§
Source§impl CandidateScore
Constructors and builders for CandidateScore.
impl CandidateScore
Constructors and builders for CandidateScore.
Sourcepub const fn from_metrics(
candidate: RenderBackendCandidate,
scene_profile: SceneProfile,
display_mode_hz_millihz: u32,
latency: (f64, f64, f64, f64),
sample_count: u64,
) -> Self
pub const fn from_metrics( candidate: RenderBackendCandidate, scene_profile: SceneProfile, display_mode_hz_millihz: u32, latency: (f64, f64, f64, f64), sample_count: u64, ) -> Self
Creates a comparable CandidateScore for (candidate, scene_profile, display_mode_hz_millihz) and latency metrics (missed_ratio, p95_ms, p99_ms, input_to_present_ms).
§Arguments
RenderBackendCandidate- Candidate backend being scored.SceneProfile- Active workload scene profile.u32- Display refresh mode in millihertz.(f64, f64, f64, f64)- Tuple(missed_frame_ratio, p95_frame_ms, p99_frame_ms, input_to_present_ms).u64- Number of real presented frames backing this score.
§Returns
Self- Comparable candidate score (hybrid_net_gain_msdefaults to0.0).
Sourcepub fn with_hybrid_net_gain_ms(self, net_gain_ms: f64) -> Self
pub fn with_hybrid_net_gain_ms(self, net_gain_ms: f64) -> Self
Source§impl CandidateScore
impl CandidateScore
pub fn get_candidate(&self) -> RenderBackendCandidate
pub fn get_mut_candidate(&mut self) -> &mut RenderBackendCandidate
pub fn set_candidate(&mut self, val: RenderBackendCandidate) -> &mut Self
pub fn get_scene_profile(&self) -> SceneProfile
pub fn get_mut_scene_profile(&mut self) -> &mut SceneProfile
pub fn set_scene_profile(&mut self, val: SceneProfile) -> &mut Self
pub fn get_display_mode_hz_millihz(&self) -> u32
pub fn get_mut_display_mode_hz_millihz(&mut self) -> &mut u32
pub fn set_display_mode_hz_millihz(&mut self, val: u32) -> &mut Self
pub fn get_missed_frame_ratio(&self) -> f64
pub fn get_mut_missed_frame_ratio(&mut self) -> &mut f64
pub fn set_missed_frame_ratio(&mut self, val: f64) -> &mut Self
pub fn get_p95_frame_ms(&self) -> f64
pub fn get_mut_p95_frame_ms(&mut self) -> &mut f64
pub fn set_p95_frame_ms(&mut self, val: f64) -> &mut Self
pub fn get_p99_frame_ms(&self) -> f64
pub fn get_mut_p99_frame_ms(&mut self) -> &mut f64
pub fn set_p99_frame_ms(&mut self, val: f64) -> &mut Self
pub fn get_input_to_present_ms(&self) -> f64
pub fn get_mut_input_to_present_ms(&mut self) -> &mut f64
pub fn set_input_to_present_ms(&mut self, val: f64) -> &mut Self
pub fn get_hybrid_net_gain_ms(&self) -> f64
pub fn get_mut_hybrid_net_gain_ms(&mut self) -> &mut f64
pub fn set_hybrid_net_gain_ms(&mut self, val: f64) -> &mut Self
pub fn get_sample_count(&self) -> u64
pub fn get_mut_sample_count(&mut self) -> &mut u64
pub fn set_sample_count(&mut self, val: u64) -> &mut Self
Trait Implementations§
Source§impl Clone for CandidateScore
impl Clone for CandidateScore
impl Copy for CandidateScore
Source§impl Debug for CandidateScore
impl Debug for CandidateScore
Source§impl Default for CandidateScore
impl Default for CandidateScore
Source§impl PartialEq for CandidateScore
impl PartialEq for CandidateScore
impl StructuralPartialEq for CandidateScore
Auto Trait Implementations§
impl Forget for CandidateScore
impl Freeze for CandidateScore
impl Move for CandidateScore
impl RefUnwindSafe for CandidateScore
impl Send for CandidateScore
impl Sync for CandidateScore
impl Unpin for CandidateScore
impl UnsafeUnpin for CandidateScore
impl UnwindSafe for CandidateScore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more