Commit Graph

383 Commits

Author SHA1 Message Date
Kieran Wallbanks
327558c003 begin bringing packets back to use components 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
35e057a638 prefer minestom enums over raw packet values 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
94b737812d add converter from adventure enums to packet values 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
d419bf9401 fix TeamColor allowing unsupported formats 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
f2897eedca fix title ticks 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
3b0aa2d63b Deprecate legacy chat functions 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
522367dd78 Begin removing deprecated usages 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
6095523d8a Deprecate old chat in packets 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
316ecbbf5a Cleanup annotations and imports 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
2c2f1b6cee Implement playSound and openBook methods 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
653859e784 Add SerializationManager 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
d9c7f2cd61 Formatting changes 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
ac57726a98 Make more classes implement Audience 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
aff04c0e0d Add boss bar implementations 2021-03-26 17:34:38 +00:00
Kieran Wallbanks
4f0944ba9f Initial adventure implementation
- deprecate old text classes
- make CommandSender and Audience
- implement in ConsoleSender
- partially implement in Player
2021-03-26 17:34:38 +00:00
themode
cef7e3d591 Optimize packet writing & reduce allocation 2021-03-26 15:58:46 +01:00
themode
9c8c8c8bf8 WIP packet allocation improvement 2021-03-26 13:08:05 +01:00
themode
1ceffd8540 Do not write empty buffer 2021-03-26 11:09:30 +01:00
themode
e9d76cc742 Flush in netty event loop 2021-03-26 08:37:47 +01:00
themode
622f632989 Use heap buffer for short lived packets 2021-03-25 16:51:36 +01:00
Eoghanmc22
0f5bb0e4f2 Changes to networking 2021-03-25 10:44:02 -04:00
LeoDog896
a982c4f11e Add removePlayerInitialization func 2021-03-23 08:56:25 -04:00
themode
01e56636da Reduce the number of buffer copy 2021-03-22 14:31:38 +01:00
themode
126382f55d Reduce memory allocation 2021-03-21 13:22:49 +01:00
themode
2028009685 Temporarily disable traffic handler, improve chunk viewers set 2021-03-21 12:02:23 +01:00
themode
aa2f29bbc2 Remove preventive write, only update cache when needed 2021-03-21 11:45:32 +01:00
themode
cd273b4d99 Use direct buffer for framed packets 2021-03-20 11:59:02 +01:00
themode
a9a0a672f0 Reduce deflater level, prevent race condition when releasing tick buffer 2021-03-20 10:20:45 +01:00
themode
cdfa0dcfde Use pooled buffer to prevent reallocation when copying 2021-03-20 08:38:50 +01:00
themode
71d0d06f90 Improve block placement performance, more abstraction for future features 2021-03-19 05:51:42 +01:00
themode
effca76196 Add threshold for flushing 2021-03-16 04:36:43 +01:00
themode
6514b188fe ChunkDataPacket remove unnecessary operations 2021-03-15 23:07:43 +01:00
themode
be6fddfa31 Optimize the removal of player connections 2021-03-11 23:56:22 +01:00
themode
39b388d624 Create NettyPlayerConnection when the channel is active instead of checking for every packet 2021-03-11 23:44:05 +01:00
themode
b6d96098f8 Update packet caching timestamp when retrieved 2021-03-09 05:21:43 +01:00
themode
7e452cdd74 Enable tcpNoDelay + prevent memory leak on disconnection 2021-03-08 16:01:33 +01:00
Eoghanmc22
6e18d2bcfe Merge branch 'network-caching' of https://github.com/Minestom/Minestom into network-caching 2021-03-07 21:42:48 -05:00
Eoghanmc22
f7cd00fb18 get rod of an unnecessary allocation that was using a lot of mem 2021-03-07 21:41:09 -05:00
themode
9b9cd2ed03 Remove unnecessary chaining 2021-03-08 02:44:46 +01:00
Eoghanmc22
a61034fc1d make delayed sending slightly faster 2021-03-07 20:23:01 -05:00
themode
6f9a92ac76 Cleanup 2021-03-08 02:11:18 +01:00
themode
e730f60c0a Initial per connection buffer 2021-03-08 01:30:18 +01:00
themode
3b918a9382 Increase cache from 10s to 30s for the chunk & light packet 2021-03-06 21:17:16 +01:00
themode
999a815eba Use ThreadLocal for deflater instead of dirty hack 2021-03-05 23:57:28 +01:00
themode
368faa72b9 Re-fix cached packets 2021-03-04 15:55:04 +01:00
themode
bde027432a Small code cleanup for packet caching 2021-03-02 20:42:36 +01:00
themode
a927938677 Fix cached packets being outdated 2021-03-02 19:14:52 +01:00
TheMode
d3bea57ddc Packet caching cleanup
Signed-off-by: TheMode <themode@outlook.fr>
2021-02-25 20:14:13 +01:00
themode
b4d9cecdce Fix build & remove deprecated method 2021-02-22 08:46:30 +01:00
themode
04b5a4f166 Use google common cache instead of our own dirty solution 2021-02-22 08:41:38 +01:00