implements PLN-0105

This commit is contained in:
2026-06-15 05:59:06 +01:00
parent d0a2682366
commit 1d6b799960
12 changed files with 73 additions and 67 deletions
@@ -135,7 +135,7 @@ impl VirtualMachineRuntime {
next_handle: &mut u32,
vm: &mut VirtualMachine,
signals: &InputSignals,
hw: &mut dyn HardwareBridge,
platform: &mut dyn RuntimePlatform,
) -> Option<CrashReport> {
let start = Instant::now();
self.tick_index += 1;
@@ -145,8 +145,6 @@ impl VirtualMachineRuntime {
}
self.update_fs(log_service, fs, fs_state);
let mut platform = LegacyHardwareRuntimePlatform::new(hw);
if !self.logical_frame_active {
if RenderManager::policy_for_app_mode(self.current_cartridge_app_mode)
.uses_frame_scheduler()
@@ -157,7 +155,7 @@ impl VirtualMachineRuntime {
}
self.logical_frame_active = true;
self.logical_frame_remaining_cycles = Self::CYCLES_PER_LOGICAL_FRAME;
self.begin_logical_frame(signals, &mut platform);
self.begin_logical_frame(signals, platform);
if self.needs_prepare_entry_call || vm.call_stack_is_empty() {
vm.prepare_boot_call();
@@ -185,7 +183,7 @@ impl VirtualMachineRuntime {
if budget > 0 {
let run_result = {
let mut ctx = HostContext::new_platform(Some(&mut platform));
let mut ctx = HostContext::new_platform(Some(platform));
let mut host = VmRuntimeHost {
runtime: self,
log_service,
@@ -311,7 +309,7 @@ impl VirtualMachineRuntime {
// 1. Snapshot full telemetry at logical frame end
let (glyph_bank, sound_bank, scene_bank) =
Self::bank_telemetry_summary(&platform);
Self::bank_telemetry_summary(platform);
self.atomic_telemetry
.glyph_slots_used
.store(glyph_bank.used_slots as u32, Ordering::Relaxed);
@@ -402,7 +400,7 @@ impl VirtualMachineRuntime {
// 2. High-frequency telemetry update (only if inspection is active)
if self.inspection_active {
let (glyph_bank, sound_bank, scene_bank) = Self::bank_telemetry_summary(&platform);
let (glyph_bank, sound_bank, scene_bank) = Self::bank_telemetry_summary(platform);
self.atomic_telemetry
.glyph_slots_used
.store(glyph_bank.used_slots as u32, Ordering::Relaxed);