home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
198.lha
/
split.doc
< prev
next >
Wrap
Text File
|
1988-12-27
|
921b
|
24 lines
SPLIT.DOC
Matthew Dillon
A cute window hack. You start with one vector going in a random
direction. After a random interval you fork off another vector.
(a fork ends when it reaches the window edge or hits another vector).
Hit the RESIZE gadget to clear & restart the window
The maximum number of vectors being drawn at the same time is 50.
This can be changed by the enviroment variable SPLIT_LIMIT.
The program is written using light weight processes (LWPs), and although
the memory usage for each vector is quite large verses a more efficient
implementation, the actual semantics of the program source are
incredibly simple. Memory usage is on the order of 512 bytes per
active vector.
This program is thus neither optimized for memory usage or speed, and
one can easily get a 5x improvement in both by rewriting it.