Commit Graph

13 Commits

Author SHA1 Message Date
TheMode
2c7aae6bec Dirty tracking (#547) 2022-01-10 16:51:21 +01:00
themode
91eb68661c Add test for entity tracking registration 2022-01-10 16:51:21 +01:00
themode
8c1c18e345 Use an IntOpenHashSet to store viewers id 2022-01-10 16:51:21 +01:00
TheMode
5c6d0dc7b2 Improve viewer loop performance
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-10 16:51:21 +01:00
TheMode
0ed847a47f Use RoaringBitmap
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-10 16:51:21 +01:00
TheMode
f9b1ec8798 Keep the array Object to allow reuse
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-10 16:51:21 +01:00
TheMode
ac4210d7d7 Improve thread safety of viewer iterator (forEach is recommended instead)
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-10 16:51:21 +01:00
TheMode
61995e1b0c Fix viewers Set size
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-10 16:51:21 +01:00
TheMode
affd4f10e6 Optimize Set#toArray for viewers
Signed-off-by: TheMode <themode@outlook.fr>
2022-01-10 16:51:21 +01:00
TheMode
e53c0a68fb Properly remove manual viewers
Signed-off-by: TheMode <themode@outlook.fr>
2021-11-25 21:30:58 +01:00
TheMode
7889400e5b Fix manual viewers
Signed-off-by: TheMode <themode@outlook.fr>
2021-11-23 23:19:34 +01:00
TheMode
d919e1b60d Add viewer fallback for non-entities
Signed-off-by: TheMode <themode@outlook.fr>
2021-11-02 16:08:21 +01:00
TheMode
faa289a097
Entity tracking rework (#486) 2021-11-01 18:04:00 +01:00