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 Maxis-like games
Status | In development |
Category | Tool |
Author | clayote |
Genre | Simulation |
Tags | agent-based-simulation, cellular-automata, Game engine, Life Simulation |
More posts
- v0.22.5 fix desktop game export6 days ago
- v0.22.4.post1 fix android11 days ago
- v0.22.4 method editor13 days ago
- v0.22.3 fix adding stuff to the world18 days ago
- v0.22.2 savegame fix on desktop19 days ago
- v0.22.1 RelaxNG schema25 days ago
- v0.22.0 new export format, determinism28 days ago
- v0.21.8 no, really, fix importer42 days ago
- v0.21.7 fix importer44 days ago
- v0.21.6 fix rule builder49 days ago
Leave a comment
Log in with itch.io to leave a comment.