worldgen

git clone https://git.godosa.eu/worldgen

master

raw ยท 433 bytes

1
2
3
4
5
6
7
"""World generator."""
import os

# OpenBLAS threads spin ~0.1 s after each call before sleeping; with solves on several threads (and other jobs on the
# machine) that spinning steals the cores doing the work. A short timeout changes nothing in how work is split, so
# results stay the same bits (the thread *count* would not: see pipeline/graph notes). Only before numpy loads.
os.environ.setdefault("OPENBLAS_THREAD_TIMEOUT", "4")