aboutsummaryrefslogtreecommitdiffziptar.gz
path: root/mapgen/__init__.py
diff options
context:
space:
mode:
authorgodosa <godosa@godosa.eu>2026-10-06 23:52:03 +0200
committergodosa <godosa@godosa.eu>2026-10-06 23:52:03 +0200
commit346b1c5195bffc71ceaa9262453e3c189656400b (patch)
tree01ac0d31e2724cd6abcc689a5a228e2cbea2f6cf /mapgen/__init__.py
downloadworldgen-346b1c5195bffc71ceaa9262453e3c189656400b.tar.gz
worldgen-346b1c5195bffc71ceaa9262453e3c189656400b.zip
worldgen: initial public history
Diffstat (limited to 'mapgen/__init__.py')
-rw-r--r--mapgen/__init__.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/mapgen/__init__.py b/mapgen/__init__.py
new file mode 100644
index 0000000..63fd969
--- /dev/null
+++ b/mapgen/__init__.py
@@ -0,0 +1,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")