pub struct PerformanceSummary {
pub total_events: usize,
pub overlapping_events: usize,
pub complex_animations: usize,
pub large_fonts: usize,
pub performance_score: u8,
}Available on crate feature
analysis only.Expand description
Performance analysis summary
Fields§
§total_events: usizeTotal number of dialogue events
overlapping_events: usizeNumber of overlapping events
complex_animations: usizeNumber of complex animations
large_fonts: usizeNumber of oversized fonts
performance_score: u8Overall performance score (0-100, higher is better)
Implementations§
Source§impl PerformanceSummary
impl PerformanceSummary
Sourcepub const fn has_performance_issues(&self) -> bool
pub const fn has_performance_issues(&self) -> bool
Check if script has performance concerns
Sourcepub const fn recommendation(&self) -> Option<&'static str>
pub const fn recommendation(&self) -> Option<&'static str>
Get performance recommendation
Trait Implementations§
Source§impl Clone for PerformanceSummary
impl Clone for PerformanceSummary
Source§fn clone(&self) -> PerformanceSummary
fn clone(&self) -> PerformanceSummary
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PerformanceSummary
impl RefUnwindSafe for PerformanceSummary
impl Send for PerformanceSummary
impl Sync for PerformanceSummary
impl Unpin for PerformanceSummary
impl UnwindSafe for PerformanceSummary
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