feat(stress): add a deterministic particle demo with sequenced music
Move Storm Eagle playback and source assets to Stress Console and keep Dummy Boy silent. Exercise VM math, seeded Random and persistent typed particles with a projected tunnel, bounded 512-sprite heavy workload, reproducible replays and measured costs.
This commit is contained in:
@@ -68,6 +68,7 @@ fn regenerated_cartridges_run_six_complete_frames_on_production_host() {
|
||||
struct Effects {
|
||||
scene_binds: usize,
|
||||
frame_commands: usize,
|
||||
music_plays: usize,
|
||||
}
|
||||
impl NativeInterface for Effects {
|
||||
fn syscall(
|
||||
@@ -81,6 +82,9 @@ fn regenerated_cartridges_run_six_complete_frames_on_production_host() {
|
||||
if syscall == Syscall::ComposerBindScene {
|
||||
self.scene_binds += 1;
|
||||
}
|
||||
if syscall == Syscall::MusicPlay {
|
||||
self.music_plays += 1;
|
||||
}
|
||||
if matches!(syscall, Syscall::GfxClear | Syscall::ComposerSetCamera) {
|
||||
self.frame_commands += 1;
|
||||
}
|
||||
@@ -125,7 +129,7 @@ fn regenerated_cartridges_run_six_complete_frames_on_production_host() {
|
||||
)
|
||||
.unwrap();
|
||||
let mut vm = prometeu_vm::VirtualMachine::from_image(image, Default::default());
|
||||
let mut effects = Effects { scene_binds: 0, frame_commands: 0 };
|
||||
let mut effects = Effects { scene_binds: 0, frame_commands: 0, music_plays: 0 };
|
||||
for _ in 0..6 {
|
||||
vm.prepare_boot_call().unwrap();
|
||||
assert_eq!(
|
||||
@@ -135,6 +139,7 @@ fn regenerated_cartridges_run_six_complete_frames_on_production_host() {
|
||||
}
|
||||
assert_eq!(effects.frame_commands, 6);
|
||||
assert_eq!(effects.scene_binds, usize::from(name == "stress-console"));
|
||||
assert_eq!(effects.music_plays, usize::from(name == "stress-console"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user