pub fn step(&mut self, dt:f32) {

        let sub_steps = (CLOCK_HZ * dt).round() as usize;
        let ddt = dt / sub_steps as f32;

        for step in 0..sub_steps {
            trace!("Executing step {}/{}", step, sub_steps);
            self.time_step(ddt);
            if self.waiting_on_key.is_some() {
                debug!("Cancel remaining execution steps while waiting for key");
                return;
            }

            let raw = {
                let codes = &self.ram[self.pc..self.pc+2];
                ((codes[0] as u16) << 8) | codes[1] as u16
            };
            let raw_ins = RawInstruction::new(raw);
            self.pc += 2;
            self.exec(&Instruction::from_raw(&raw_ins));
        }
    }
// dt: Time in seconds since last step
/// Executes remaining instructions since the last step
Time in seconds since last step
Executes remaining instructions since the last step
Time in seconds since last step Executes remaining instructions since the last step
pub fn step(&mut self, dt:f32) {
        let sub_steps = (CLOCK_HZ * dt).round() as usize;
        let ddt = dt / sub_steps as f32;
        for step in 0..sub_steps {
            trace!("Executing step {}/{}", step, sub_steps);
            self.time_step(ddt);
            if self.waiting_on_key.is_some() {
                debug!("Cancel remaining execution steps while waiting for key");
                return;
            }
            let raw = {
                let codes = &self.ram[self.pc..self.pc+2];
                ((codes[0] as u16) << 8) | codes[1] as u16
            };
            let raw_ins = RawInstruction::new(raw);
            self.pc += 2;
            self.exec(&Instruction::from_raw(&raw_ins));
        }
    }
pub fn step ( & mut self , dt : f32 ) { let sub_steps = ( CLOCK_HZ * dt ) . round ( ) as usize ; let ddt = dt / sub_steps as f32 ; for step in 0 .. sub_steps { trace ! ( " " step sub_steps ) ; self . time_step ( ddt ) ; if self . waiting_on_key . is_some ( ) { debug ! ( " " ) ; return ; } let raw = { let codes = & self . ram [ self . pc .. self . pc + 2 ] ; ( ( codes [ 0 ] as u16 ) << 8 ) | codes [ 1 ] as u16 } ; let raw_ins = RawInstruction :: new ( raw ) ; self . pc += 2 ; self . exec ( & Instruction :: from_raw ( & raw_ins ) ) ; } }
dt: Time in seconds since last step
Executes remaining instructions since the last step
dt : Time in seconds since last step Executes remaining instructions since the last step
&mut self
dt
f32
&mut self
dt
f32