pre-calculate morton codes in threadpool

This commit is contained in:
2026-03-06 02:42:30 +01:00
parent c060cfd35d
commit 6ab935c9be
5 changed files with 33 additions and 15 deletions

View File

@ -91,4 +91,9 @@ constexpr Color BLOCK_COLOR = DARKBLUE;
constexpr Color TARGET_BLOCK_COLOR = RED;
constexpr Color WALL_COLOR = BLACK;
// Threadpool
static constexpr int SMALL_TASK_BLOCK_SIZE = 256; // Weirdly larger blocks decrease performance...
static constexpr int LARGE_TASK_BLOCK_SIZE = 256;
#endif