draw clips; begin removing format! allocs
Some checks failed
/ build (push) Has been cancelled

This commit is contained in:
i do not exist 2026-08-13 07:44:10 +03:00
parent d9e17cd348
commit e50c4a5eef
7 changed files with 479 additions and 146 deletions

View file

@ -13,7 +13,9 @@ pub fn show_version () {
}
/// Command-line entrypoint.
#[allow(unused)] fn main () -> Usually<()> {
#[allow(unused)]
#[hotpath::main]
fn main () -> Usually<()> {
tengri::Tui::setup_panic();
#[cfg(feature = "cli")] {
Config::watched(crate::cli::run_with_config)?;
@ -1326,14 +1328,14 @@ mod draw {
/// Then, every top-level form of the DSL description is rendered.
impl View<Tui> for App {
fn view (&self) -> impl Draw<Tui> {
self.perf.cycle(&mut |_|{
//self.perf.cycle(&mut |_|{
draw(|to: &mut Tui|{
self.draw_error(to)?;
self.draw_mode(to)?;
self.draw_debug(to)?;
//self.draw_debug(to)?;
Ok(Some(to.area().into()))
})
})
//})
}
}
@ -1404,9 +1406,9 @@ mod draw {
Some("outputs") => self.project.view_track_outputs(self.color.clone(), 0).draw(to),
_ => panic!()
},
Some(":scenes") => match frags.next() {
None => "TODO Scenes".draw(to),
Some(":scenes/names") => "TODO Scene Names".draw(to),
Some(":scenes") => match frags.next() {
None => self.view_scenes_clips().draw(to),
Some("names") => self.view_scenes_names().draw(to),
_ => panic!()
},
Some(":dialog") => draw_dialog(to, frags, self, lang),