Improved prelude

This commit is contained in:
2026-01-31 00:15:40 +01:00
parent ab9548920c
commit 85342d641f
6 changed files with 9 additions and 10 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ pub trait Engine<Output = ()> {
fn init<C: ComponentImpl + 'static>(&self, component: C) -> Arc<Context>;
fn render(&self, cx: &Arc<Context>);
fn render_delay(&self) {
std::thread::sleep(std::time::Duration::from_millis(16))
crate::sleep(16);
}
fn render_view(&self, area: &Area, view: &View) -> DrawContext;