mirror of
https://codeberg.org/unspeaker/tengri.git
synced 2025-12-06 03:36:42 +01:00
make PerfModel fields public
This commit is contained in:
parent
d5a304e645
commit
6cd85efe50
1 changed files with 3 additions and 3 deletions
|
|
@ -4,11 +4,11 @@ use crate::*;
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct PerfModel {
|
pub struct PerfModel {
|
||||||
pub enabled: bool,
|
pub enabled: bool,
|
||||||
clock: quanta::Clock,
|
pub clock: quanta::Clock,
|
||||||
// In nanoseconds. Time used by last iteration.
|
// In nanoseconds. Time used by last iteration.
|
||||||
used: AtomicF64,
|
pub used: AtomicF64,
|
||||||
// In microseconds. Max prescribed time for iteration (frame, chunk...).
|
// In microseconds. Max prescribed time for iteration (frame, chunk...).
|
||||||
window: AtomicF64,
|
pub window: AtomicF64,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub trait HasPerf {
|
pub trait HasPerf {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue