Skip to content

Commit

Permalink
chore: Just comments
Browse files Browse the repository at this point in the history
  • Loading branch information
marc2332 committed Aug 25, 2024
1 parent bdced12 commit daf1391
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/core/src/render/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ use crate::{
},
};

/// Runs the full rendering cycle.
pub struct RenderPipeline<'a> {
pub rdom: &'a DioxusDOM,
pub layers: &'a Layers,
Expand Down Expand Up @@ -87,6 +88,7 @@ impl RenderPipeline<'_> {

#[cfg(feature = "fade-cached-incremental-areas")]
{
/// Slowly fade into white non-rerendered areas
if self.compositor_dirty_area.is_some() {
use freya_engine::prelude::{
Paint,
Expand All @@ -108,6 +110,7 @@ impl RenderPipeline<'_> {

self.dirty_surface.canvas().save();

// Round the area out to prevent float pixels issues
self.compositor_dirty_area.round_out();

// Clear using the the background only, but only the dirty
Expand All @@ -130,9 +133,10 @@ impl RenderPipeline<'_> {
}

#[cfg(debug_assertions)]
// Counter of painted nodes for debugging purposes
let mut painted = 0;

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

0 comments on commit daf1391

Please sign in to comment.