0.16.0 multiprocess parallelism
This release adds full multiprocess support: by default, LiSE will run your rules' triggers in subprocesses, so it'll be faster than before when there are lots of triggers.
If you know a bit about parallel programming in Python already, you can use LiSE's new Engine.pool.submit(..) function, just like the one in Python's basic concurrent.futures module, to run whatever code you've stored in the engine's function and method attributes. Putting your functions in a file function.py with the rest of the game code, then accessing the functions in that file as Engine.function.whatever, will work fine.
An additional optimization is available if your rule is meant to run only when something changes near the entity it runs on. Set a neighborhood, now demonstrated in the README, to take advantage.
ELiDE also responds to changes in graphics that the LiSE engine tells it to do, like setting thing["_image_paths"] to a list of image files in the Awareness example. This isn't so much a new feature as an old one that I seem to have turned off on purpose at some point. I don't remember why anymore, so here it is.
Files
Get Lisien
Lisien
Life Simulator Engine for systemically complex, rules-based games, with time travel
Status | In development |
Category | Tool |
Author | clayote |
Genre | Simulation |
Tags | agent-based-simulation, cellular-automata, Game engine, Life Simulation |
More posts
- v0.21.8 no, really, fix importer6 days ago
- v0.21.7 fix importer8 days ago
- v0.21.6 fix rule builder13 days ago
- v0.21.5 fix new game button *again*13 days ago
- v0.21.4 reorderable rules15 days ago
- example sims17 days ago
- v0.21.3 you can start games on Android again19 days ago
- v0.21.2 you can see Elide again28 days ago
- v0.21.0 bookmarks32 days ago
- v0.20.239 days ago
Leave a comment
Log in with itch.io to leave a comment.