Skip to content

Commit

Permalink
Add four update steps to test
Browse files Browse the repository at this point in the history
  • Loading branch information
Zac8668 committed Jan 27, 2024
1 parent e76d4a2 commit ffc10ea
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions src/chunk_group.rs
Original file line number Diff line number Diff line change
Expand Up @@ -440,15 +440,19 @@ 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())
{

update_chunk_groups(
&mut chunk_manager.chunks,
(0, 0),
&dirty_rects,
manager_pos,
(dirty_update_rect_send, dirty_render_rect_send),
(dt, materials),

);
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),
);

}
}

0 comments on commit ffc10ea

Please sign in to comment.