| |||
|
|
It can handle a few millions entities in real-time. And it is fast enough to do set intersections and unions. These are most common operations in a game. And attaching tags to objects is common too. Relations like `A loves B` are also tags. I.e. A is in a set of objects that love B. In any case, order of magnitude better than what I had before. That is, I used all 64 bits to store just a single bit. Symta exposes it as a generic hashmap. And it is auto promoted to a normal hashmap, As soon as one of the value is not 1 (0 = No value). Think https://en.wikipedia.org/wiki/Numerical But for hash maps. Bitmap is the most basic of these. Добавить комментарий: |
||||