themode
|
0f421c22db
|
Specialize ViewEngine set for entities & chunks. Also fix manual viewers for entities
|
2022-02-13 17:34:09 +01:00 |
|
themode
|
84d154b8db
|
Add ChunkUtils#getChunkCount
|
2022-02-13 10:27:24 +01:00 |
|
themode
|
4459bbeebd
|
Cleanup view tracking
|
2022-02-13 07:51:47 +01:00 |
|
TheMode
|
de71900cb9
|
Add readByteArray shortcut
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-02-11 04:32:49 +01:00 |
|
TheMode
|
1ad013e02e
|
Remove deprecated data/storage APIs
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-02-09 23:07:18 +01:00 |
|
TheMode
|
e505c965e2
|
Avoid floor whenever possible
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-02-08 09:52:50 +01:00 |
|
TheMode
|
f633e6e276
|
Simplify parseProperties
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-02-08 09:42:18 +01:00 |
|
TheMode
|
920bf62699
|
Style
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-02-08 05:31:47 +01:00 |
|
TheMode
|
52852d339a
|
Fix viewable packets in shared instances
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-02-08 05:28:19 +01:00 |
|
themode
|
2e02dfd4d8
|
Fix synchronization issue with viewable packets
|
2022-02-05 08:21:19 +01:00 |
|
TheMode
|
0743759eed
|
Do not cache registry (#651)
|
2022-02-04 22:28:05 +01:00 |
|
TheMode
|
87d5a33c76
|
Fix corruption when receiving multiple compressed packets (#611)
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-29 10:18:23 +01:00 |
|
themode
|
735184b909
|
Add tests for reading complete un/compressed stream
|
2022-01-27 14:58:30 +01:00 |
|
themode
|
a111271113
|
Fix tests
|
2022-01-26 18:37:21 +01:00 |
|
Moulberry
|
cd591dd388
|
Fix cachedBuffer being overriden (#603)
|
2022-01-26 17:28:41 +01:00 |
|
themode
|
0b4dd3b8aa
|
Heavily reduce the number of direct buffers required for each worker
|
2022-01-26 06:37:46 +01:00 |
|
TheMode
|
d0b874ed7c
|
Move local buffers
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-26 05:01:43 +01:00 |
|
TheMode
|
32d692a56a
|
Avoid more allocation
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-25 14:14:01 +01:00 |
|
TheMode
|
b5bcd8fd4a
|
Avoid string internal during properties parsing
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-25 13:33:14 +01:00 |
|
TheMode
|
30cf6e8e4f
|
Improve block properties performance
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-25 07:43:52 +01:00 |
|
TheMode
|
be1495a385
|
Add extractClientNbt utils
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-22 05:46:26 +01:00 |
|
TheMode
|
a9dc5bbf7b
|
Add back namespace caching
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-18 00:47:28 +01:00 |
|
themode
|
0163dd6f42
|
Reduce block properties parsing allocation
|
2022-01-15 20:12:33 +01:00 |
|
TheMode
|
2ef1902664
|
Remove MinestomThreadPool, use the common pool for generation
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-12 22:37:35 +01:00 |
|
TheMode
|
0366027c5d
|
Misc cleanup
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-12 22:15:50 +01:00 |
|
themode
|
94a13a9523
|
Add basic ViewEngineTest
|
2022-01-12 10:47:38 +01:00 |
|
Moulberry
|
09245defd6
|
Improve PositionUtils and add tests (#582)
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
5bbf4642e8
|
Server process (#550)
|
2022-01-10 16:51:21 +01:00 |
|
themode
|
3aeb0690d8
|
Rework NamespaceID
|
2022-01-10 16:51:21 +01:00 |
|
Gatt
|
2fff62efd2
|
Fix DeclareRecipePacket (#562)
|
2022-01-10 16:51:21 +01:00 |
|
themode
|
4b89ce33ee
|
Add ArrayUtils#toMap
|
2022-01-10 16:51:21 +01:00 |
|
themode
|
7becd89b1d
|
Test for ObjectArray
|
2022-01-10 16:51:21 +01:00 |
|
themode
|
91a8607710
|
Fix MultiBlockChangePacket read
|
2022-01-10 16:51:21 +01:00 |
|
themode
|
c5728a2df1
|
MultiBlockChangePacket use a var long array
|
2022-01-10 16:51:21 +01:00 |
|
themode
|
b1d6ce7b1b
|
Thanks fastutil
|
2022-01-10 16:51:21 +01:00 |
|
themode
|
29d7cd1c8a
|
Handle weird input without properties
|
2022-01-10 16:51:21 +01:00 |
|
themode
|
9c73e72771
|
Add fallback for block properties with > 10 entries
|
2022-01-10 16:51:21 +01:00 |
|
themode
|
6082741143
|
Add fallback for block properties with > 10 entries
|
2022-01-10 16:51:21 +01:00 |
|
themode
|
78f37de368
|
Intern block properties
|
2022-01-10 16:51:21 +01:00 |
|
themode
|
7b328d3d4c
|
Some love for java generics
|
2022-01-10 16:51:21 +01:00 |
|
themode
|
18d8e60064
|
Allow pooled buffers to be manually cleared
|
2022-01-10 16:51:21 +01:00 |
|
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 |
|
Németh Noel
|
83d751ecf2
|
Move and rename ChunkUtils.toSectionRelativeCoordinate, added tests
|
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
|
d31b219294
|
Move basic meta reading
|
2022-01-10 16:51:21 +01:00 |
|
themode
|
bb5fe8cf70
|
Same for shared meta
|
2022-01-10 16:51:21 +01:00 |
|
themode
|
2e07af2b80
|
Use map
|
2022-01-10 16:51:21 +01:00 |
|
themode
|
f6db75b9aa
|
Replace getSectionAt to getChunkCoordinate
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
076b11b77a
|
Separate concern for packet reading
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-10 16:51:21 +01:00 |
|
jglrxavpok
|
34030e3a8f
|
Bump Hephaistos version + fix loading of <0 sections for 1.18 worlds
|
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 |
|
Xavier Niochaut
|
9ab4277502
|
Port to Hephaistos v2 (#424)
|
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
|
22a8ccabfa
|
Fix notifications
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
9d26fa8137
|
Make LightData record
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
05de99f45f
|
immutable packets (record) (#528)
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
f52cc8d82b
|
Prepare changes for the biome api
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
972e15a62b
|
Add basic block entity support, simplify code
Signed-off-by: TheMode <themode@outlook.fr>
|
2022-01-10 16:51:21 +01:00 |
|
TheMode
|
d3b55700e2
|
Initial non-working 1.18 commit
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
|
b637cd3059
|
Avoid socket write when the buffer is empty
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-24 15:51:45 +01:00 |
|
TheMode
|
7889400e5b
|
Fix manual viewers
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-23 23:19:34 +01:00 |
|
TheMode
|
3fa7a0ba4b
|
Deprecate unsafe casting methods
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-23 20:38:57 +01:00 |
|
TheMode
|
0f2ad33e52
|
Use java 17 toList()
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-23 20:27:25 +01:00 |
|
TheMode
|
ad75e942aa
|
Remove unused/unsafe hashmap, make namespace cache thread safe
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-23 19:20:49 +01:00 |
|
TheMode
|
098885cc7f
|
Optimize PooledBuffers
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-21 13:15:29 +01:00 |
|
TheMode
|
6ed55a68c0
|
Prevent stream allocation when viewable packets are disabled
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-20 13:56:59 +01:00 |
|
TheMode
|
8b1856d5b7
|
Async packet write (#533)
|
2021-11-17 06:31:24 +01:00 |
|
TheMode
|
c5e947c76e
|
Move CachedPacket and FramedPacket
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-17 00:48:43 +01:00 |
|
GreatWyrm
|
62b9e80d46
|
Fix exception on invalid username or UUID (#532)
|
2021-11-15 19:23:20 +01:00 |
|
TheMode
|
e9a3144606
|
Fix boolean properties
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-10 23:34:19 +01:00 |
|
TheMode
|
dc6a520ab5
|
Add properties for grouped, cached & viewable packets (#524)
|
2021-11-10 22:34:21 +01:00 |
|
TheMode
|
519c1cb937
|
Only url should be used as cache key
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-08 08:49:25 +01:00 |
|
TheMode
|
e5ad5609cf
|
Simplify MojangUtils
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-07 14:46:26 +01:00 |
|
TheMode
|
a29cac471b
|
More records
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-07 14:33:07 +01:00 |
|
TheMode
|
bc921cfde9
|
Add size property for pooled buffers
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-07 13:48:04 +01:00 |
|
TheMode
|
d7cbcfe239
|
Add Blocking annotation
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-07 11:59:10 +01:00 |
|
TheMode
|
cde7e69c1f
|
Use an Object2ObjectArrayMap to store block properties
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-07 08:26:02 +01:00 |
|
TheMode
|
ec2d164e7b
|
Add internal ObjectArray
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-06 14:07:42 +01:00 |
|
TheMode
|
ca6f0b1eb5
|
Lazily initialize nbtReader
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-04 19:13:11 +01:00 |
|
TheMode
|
b18df47feb
|
Avoid slice allocation when compressing packets
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-03 03:06:19 +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
|
5b63636e92
|
Use caffeine map
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-02 06:17:58 +01:00 |
|
TheMode
|
970d4d2d9c
|
Allow buffer index/length to be specified
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-02 03:08:36 +01:00 |
|
TheMode
|
0ba41ac88b
|
Use the backing array for viewable packets
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-02 02:22:05 +01:00 |
|
TheMode
|
ae97aec7aa
|
Add back guava map, keep ViewableStorage synchronized
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-11-02 01:24:57 +01:00 |
|
TheMode
|
faa289a097
|
Entity tracking rework (#486)
|
2021-11-01 18:04:00 +01:00 |
|
TheMode
|
50a0c13120
|
Rollback concurrent map change, due to guava not providing a compute implementation
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-10-30 00:49:21 +02:00 |
|
themode
|
484727d02a
|
Use a concurrent map for viewable packets
|
2021-10-29 03:03:18 +02:00 |
|
themode
|
72461ade73
|
instanceof pattern matching in LocalCache
|
2021-10-28 02:55:40 +02:00 |
|
TheMode
|
02054447f8
|
Use forEach to take advantage of specialized impl
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-10-26 02:00:59 +02:00 |
|
TheMode
|
23d59cb135
|
Returned framed buffers should be flipped
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-10-26 00:05:03 +02:00 |
|
TheMode
|
00401bed25
|
Avoid allocation when writing framed packets
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-10-25 23:55:20 +02:00 |
|
TheMode
|
7891cc5bbe
|
Use more instanceof pattern matching
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-10-22 02:19:38 +02:00 |
|
TheMode
|
5030664ff9
|
Use more enhanced switches
Signed-off-by: TheMode <themode@outlook.fr>
|
2021-10-22 02:14:12 +02:00 |
|