pub fn run_for_frame(&mut self) {
        let cycles = match self.exas.len() {
            0 => 0,
            #[cfg(not(target_os = "android"))]
            1..=5 => 1000,
            #[cfg(target_os = "android")]
            1..=5 => 200,
            #[cfg(not(target_os = "android"))]
            6..=10 => 750,
            #[cfg(target_os = "android")]
            6..=10 => 150,
            #[cfg(not(target_os = "android"))]
            _ => 500,
            #[cfg(target_os = "android")]
            _ => 80,
        };

        self.run_cycles(cycles);
    }
/// Run the VM for one animation frame at 30hz. The
/// tricky part here is that how many cycles constitutes
/// a frame seems to be undefined and/or dynamic.
/// From observation, it seems that the cycles per frame
/// do decrease when more EXAs are alive, and it also
/// seems that there may be a hardcoded cycle count
/// rather than simply running as fast as the CPU will
/// allow. To try to mimic that behavior, and allow
/// some determinism, we have set cycle counts based
/// on how many EXAs are currently alive.
Run the VM for one animation frame at 30hz. The
tricky part here is that how many cycles constitutes
a frame seems to be undefined and/or dynamic.
From observation, it seems that the cycles per frame
do decrease when more EXAs are alive, and it also
seems that there may be a hardcoded cycle count
rather than simply running as fast as the CPU will
allow. To try to mimic that behavior, and allow
some determinism, we have set cycle counts based
on how many EXAs are currently alive.
Run the VM for one animation frame at 30hz . The tricky part here is that how many cycles constitutes a frame seems to be undefined and / or dynamic . From observation it seems that the cycles per frame do decrease when more EXAs are alive and it also seems that there may be a hardcoded cycle count rather than simply running as fast as the CPU will allow . To try to mimic that behavior and allow some determinism we have set cycle counts based on how many EXAs are currently alive .
pub fn run_for_frame(&mut self) {
        let cycles = match self.exas.len() {
            0 => 0,
            #[cfg(not(target_os = "android"))]
            1..=5 => 1000,
            #[cfg(target_os = "android")]
            1..=5 => 200,
            #[cfg(not(target_os = "android"))]
            6..=10 => 750,
            #[cfg(target_os = "android")]
            6..=10 => 150,
            #[cfg(not(target_os = "android"))]
            _ => 500,
            #[cfg(target_os = "android")]
            _ => 80,
        };
        self.run_cycles(cycles);
    }
pub fn run_for_frame ( & mut self ) { let cycles = match self . exas . len ( ) { 0 => 0 , # [ cfg ( not ( target_os " " ) ) ] 1 ..= 5 => 1000 , # [ cfg ( target_os " " ) ] 1 ..= 5 => 200 , # [ cfg ( not ( target_os " " ) ) ] 6 ..= 10 => 750 , # [ cfg ( target_os " " ) ] 6 ..= 10 => 150 , # [ cfg ( not ( target_os " " ) ) ] _ => 500 , # [ cfg ( target_os " " ) ] _ => 80 , } ; self . run_cycles ( cycles ) ; }
Run the VM for one animation frame at 30hz.
Run the VM for one animation frame at 30hz .
&mut self
&mut self