Skip to content

Commit a31f1c8

Browse files
committed
[fix] update & render loop to run together.
1 parent bfcde40 commit a31f1c8

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

crates/lambda-rs/src/runtimes/application.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -320,13 +320,9 @@ impl Runtime for ApplicationRuntime {
320320
current_frame = Instant::now();
321321
let duration = &current_frame.duration_since(last_frame);
322322

323-
// Update and render commands.
324-
for component in &mut component_stack {
325-
component.on_update(duration);
326-
}
327-
328323
let active_render_context = active_render_context.as_mut().expect("Couldn't get the active render context. ");
329324
for component in &mut component_stack {
325+
component.on_update(duration);
330326
let commands = component.on_render(active_render_context);
331327
active_render_context.render(commands);
332328
}

0 commit comments

Comments
 (0)