diff --git a/src/chunk_group.rs b/src/chunk_group.rs index 3864742..32b6c18 100644 --- a/src/chunk_group.rs +++ b/src/chunk_group.rs @@ -440,15 +440,19 @@ fn update_test() { let (dirty_render_rects_send, _) = async_channel::unbounded::(); 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), + ); + } }