Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac8668 committed Jan 27, 2024
1 parent efc1eed commit de5a415
Showing 1 changed file with 11 additions and 16 deletions.
27 changes: 11 additions & 16 deletions src/chunk_group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -442,20 +442,15 @@ fn update_test() {
let (dirty_render_rects_send, _) = async_channel::unbounded::<DeferredDirtyRectUpdate>();
let dirty_render_rect_send = &dirty_render_rects_send;

for (y_toff, x_toff) in rand_range(0..2)
.into_iter()
.cartesian_product(rand_range(0..2).into_iter())
{
compute_pool.scope(|scope| {
update_chunk_groups(
&mut chunk_manager.chunks,
(x_toff, y_toff),
&dirty_rects,
manager_pos,
(dirty_update_rect_send, dirty_render_rect_send),
(dt, materials),
scope,
);
});
}
compute_pool.scope(|scope| {
update_chunk_groups(
&mut chunk_manager.chunks,
(0, 0),
&dirty_rects,
manager_pos,
(dirty_update_rect_send, dirty_render_rect_send),
(dt, materials),
scope,
);
});
}

0 comments on commit de5a415

Please sign in to comment.