Crates.io | hltas-framebulk-analyzer |
lib.rs | hltas-framebulk-analyzer |
version | 1.0.0 |
source | src |
created_at | 2022-04-08 03:28:07.489479 |
updated_at | 2022-04-08 03:28:07.489479 |
description | Analyser of HLTAS files |
homepage | |
repository | https://github.com/Eddio0141/hltas-framebulk-analyzer |
max_upload_size | |
id | 564010 |
size | 51,162 |
ctrl+D
on linux / macOS, or ctrl+Z
on windowsctrl+c
let hltas = HLTAS {
properties: Properties::default(),
lines: vec![
Line::FrameBulk(FrameBulk {
frame_time: "0.001".to_string(),
frame_count: NonZeroU32::new(150).unwrap(),
auto_actions: Default::default(),
movement_keys: Default::default(),
action_keys: Default::default(),
pitch: Default::default(),
console_command: Default::default(),
}),
Line::FrameBulk(FrameBulk {
frame_time: "0.004".to_string(),
frame_count: NonZeroU32::new(150).unwrap(),
auto_actions: Default::default(),
movement_keys: Default::default(),
action_keys: Default::default(),
pitch: Default::default(),
console_command: Default::default(),
}),
],
};
let analysis = analyze_hltas(&hltas).unwrap();
// prints in a nice format
println!("{}", analysis);
assert_eq!(analysis.estimated_time, dec!(0.75));
assert_eq!(analysis.frametime_stats, vec![
FrametimeStats {
frametime: dec!(0.001),
frame_count: BigUint::from_u32(150).unwrap(),
},
FrametimeStats {
frametime: dec!(0.004),
frame_count: BigUint::from_u32(150).unwrap(),
},
]);
Why is this colourful?
It looks cool thats why
Why so many stats are printed on the console? It seems pointless
Idk more the better I guess
Why not analyze the bxt logs directly instead if hltas only gives an estimated time?
That's why I'm making an analyzer that will take bxt logs, and maybe hltas together to made a better analysis of the TAS