Skip to content

Commit

Permalink
feat: Deterministic order of rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Sep 25, 2024
1 parent dab3178 commit 690e90d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/core/src/render/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ impl RenderPipeline<'_> {

// Render the dirty nodes
for (_, nodes) in sorted(rendering_layers.iter()) {
'elements: for node_id in nodes {
'elements: for node_id in sorted(nodes) {
let node_ref = self.rdom.get(*node_id).unwrap();
let node_viewports = node_ref.get::<ViewportState>().unwrap();
let layout_node = self.layout.get(*node_id);
Expand Down

0 comments on commit 690e90d

Please sign in to comment.