From d9c296dae60ca5b31dbd4be21438d48b5a5f3592 Mon Sep 17 00:00:00 2001 From: bakpakin Date: Sun, 6 Mar 2016 18:20:18 -0500 Subject: [PATCH] Update documentation. --- tiny.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tiny.lua b/tiny.lua index f62f868..37d643a 100644 --- a/tiny.lua +++ b/tiny.lua @@ -258,6 +258,14 @@ end -- in the next update, if it has one. This is usually managed by tiny-ecs, so -- users should mostly ignore this, too. -- +-- There is another option to (hopefully) increase performance in systems that have +-- items added to or removed from them often, and have lots of entities in them. +-- Setting the `nocache' field of the system might improve performance. It is still +-- experimental. There are some restriction to systems without caching, however. +-- * There is no `entities` table. +-- * Callbacks such onAdd, onRemove, and onModify will never be called +-- * Noncached systems cannot be sorted (There is no entities list to sort). +-- -- @section System -- Use an empty table as a key for identifying Systems. Any table that contains