show the generated region maps in the viewer
Tiles are single maps of single regions, generated on worker threads that each own a worldgen, since the layers keep RNG state. Only the visible tiles are queued, nearest first, so the viewer never computes more than the window shows and sleeps once it has drawn it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -3,6 +3,19 @@
|
||||
Language bugs and friction met while building vs-map-viewer, against
|
||||
sexc at ~/dev/sex. Newest first. Unless said otherwise, sexc dfafe8b.
|
||||
|
||||
* A cast as the object of =.= loses its parentheses
|
||||
=(. (cast pa (* const wanted)) distance)= emits
|
||||
=(const wanted *)pa->distance=, which C reads as a cast of
|
||||
=pa->distance= on a =void *=. Like the conditional entry below, the
|
||||
writer doesn't parenthesize a lower-precedence operand. Bound to a
|
||||
typed local first, it works.
|
||||
|
||||
* Arrays of a header type with a symbolic size misparse
|
||||
=(workers [pthread-t MAX_WORKERS])= emits =pthread_t MAX_WORKERS
|
||||
workers[];=, reading =MAX_WORKERS= as a second type word. =[u16
|
||||
CHUNK_AREA]= works, presumably because =u16= is known to Sex and
|
||||
=pthread_t= only to C. A literal size, =[pthread-t 32]=, works.
|
||||
|
||||
* A conditional expression as an operand loses its parentheses
|
||||
#+begin_src scheme
|
||||
(/ (* 100.0 matched) (if (> compared 0) compared 1))
|
||||
|
||||
Reference in New Issue
Block a user