Skip to content

Commit

Permalink
使用メモリ・処理速度を大幅に向上
Browse files Browse the repository at this point in the history
  • Loading branch information
tatuharu committed Jul 15, 2022
1 parent 79a0693 commit b293001
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions find_block.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,9 @@ def _find_block(self):
print("X:" + str(x) + " Y:" + str(y) + " Z:" + str(z) + " " + dimension)
file_out_list.append((str(x), str(y), str(z), dimension))

if count % 1000 == 0:
world.unload_unchanged()

count += 1
yield count / chunk_count

Expand Down

0 comments on commit b293001

Please sign in to comment.