size the thread and file arrays by their constants
An array of a header type takes a symbolic size now (sex#60). The records holding them are pub, so their constants are too. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -50,7 +50,7 @@
|
||||
;;; River tiles are sampled at a resolution the viewer picks by zoom,
|
||||
;;; in the key's `stratum': a column costs too much to sample them all
|
||||
;;; for an overview.
|
||||
(define MAX-WORKERS 32)
|
||||
(pub define MAX-WORKERS 32)
|
||||
|
||||
(define TILE-FREE 0)
|
||||
(define TILE-QUEUED 1)
|
||||
@@ -76,9 +76,7 @@
|
||||
(queue [int MAX-TILES]) (queue-len int) (queue-pos int)
|
||||
(free-slots [int MAX-TILES]) (free-count int)
|
||||
(settings world-settings) (rivers river-config) (assets-dir [char 1024]) (generation int)
|
||||
;; TODO sex#60: size with MAX-WORKERS once arrays of a header type
|
||||
;; take a symbolic size.
|
||||
(workers [pthread-t 32]) (worker-count int) (quit bool) (frame u64) (waiting int)
|
||||
(workers [pthread-t MAX-WORKERS]) (worker-count int) (quit bool) (frame u64) (waiting int)
|
||||
(palette [u32 256])))
|
||||
|
||||
(fn key-hash ((k tile-key)) u64
|
||||
|
||||
Reference in New Issue
Block a user