Commit Graph

275 Commits

Author SHA1 Message Date
Felix Cravic
cea3b8b593 WIP removal of #copy for #clone 2020-12-09 20:51:40 +01:00
Felix Cravic
5576d11fce Do not wait for worker thread shutdown 2020-12-08 18:14:10 +01:00
Felix Cravic
fec23a9783 Improve grouped packet performance 2020-12-08 09:13:22 +01:00
Felix Cravic
0f97930f79 Fix player gravity 2020-12-06 16:52:04 +01:00
Felix Cravic
43aca45c05 Fixed void promise on channel write 2020-12-06 05:52:36 +01:00
Felix Cravic
e3f6b73241 NettyPlayerConnection.java#write and flush should return a ChannelFuture 2020-12-05 20:35:43 +01:00
Felix Cravic
d61a598c94 Prevent players being disconnected two times during a clean stop, also made shutdown tasks being executed in a single thread 2020-12-02 21:28:36 +01:00
Felix Cravic
181f20289c Cleanup for the sound code, and comment for PlayerLoginEvent about not working player methods 2020-12-02 14:36:54 +01:00
Felix Cravic
415bcda6fd Allow custom Netty thread count 2020-11-29 17:49:02 +01:00
Felix Cravic
1f2e4de0b3 Use of a ScheduledExecutorService for the server ticks (instead of Thread#sleep) 2020-11-28 21:50:34 +01:00
Felix Cravic
c21acd97f3 Use unpooled buffer in ChunkDataPacket to reduce memory usage 2020-11-27 14:32:13 +01:00
Felix Cravic
63196e024b Fixed EntityTeleportPacket being sent for every position fields modification and use a proper entity movement packet instead of velocity 2020-11-26 12:46:49 +01:00
Eoghanmc22
f8840cf7a9 Merge branch 'master' of https://github.com/Minestom/Minestom 2020-11-25 20:15:08 -05:00
Eoghanmc22
338a1737c7 wait for netty to finish shutting down 2020-11-25 20:13:38 -05:00
Felix Cravic
79a5f99358 A few internal comments 2020-11-26 01:38:08 +01:00
Felix Cravic
ae845e38ab Small cleanup 2020-11-26 01:24:43 +01:00
Eoghanmc22
d1138f9f81 Fix race condition 2020-11-25 11:28:37 -05:00
Eoghanmc22
d056fceb8a slightly improve performance and fix memory leak 2020-11-22 12:44:08 -05:00
Eoghanmc22
a934df2af2 Merge branch 'master' of https://github.com/Minestom/Minestom 2020-11-22 08:59:52 -05:00
themode
0a5349226e Replaced CopyOnWriteArraySet to IntOpenHashSet for block entities 2020-11-22 14:58:01 +01:00
themode
8330abbc4b Fixed mojang authentication 2020-11-21 23:33:06 +01:00
Eoghanmc22
f2f0625666 Merge branch 'master' of https://github.com/Minestom/Minestom
 Conflicts:
	src/test/java/demo/PlayerInit.java
2020-11-21 13:23:16 -05:00
Eoghanmc22
926c02b7f5 Small optimizations to netty. 2020-11-21 13:09:03 -05:00
themode
3087b120f9 Basic support for linux io_uring 2020-11-21 10:42:07 +01:00
themode
27414f65ab Made packet caching optional (enabled by default) 2020-11-21 10:26:25 +01:00
Eoghanmc22
c1c84217c2 Merge branch 'master' of https://github.com/Minestom/Minestom 2020-11-20 12:16:55 -05:00
Eoghanmc22
ee2e141673 implement pooled buffers 2020-11-20 12:16:45 -05:00
themode
206991ad0a Fixed TemporaryCache#retrieve not taking the last update time 2020-11-20 18:15:37 +01:00
Eoghanmc22
9a64a0a409 Merge branch 'master' of https://github.com/Minestom/Minestom
 Conflicts:
	src/main/java/net/minestom/server/entity/Player.java
	src/main/java/net/minestom/server/network/player/NettyPlayerConnection.java
	src/main/java/net/minestom/server/utils/PacketUtils.java
2020-11-20 08:56:58 -05:00
TheMode
8c5d013990 Flush in the current thread
Signed-off-by: TheMode <themode@outlook.fr>
2020-11-20 13:48:45 +01:00
themode
075ff7600a Added a whole new caching system for ChunkDataPacket and UpdateLightPacket 2020-11-20 11:14:15 +01:00
themode
02eab844a5 Fix logging when compression is disabled (not recommended) 2020-11-20 07:55:34 +01:00
themode
4060f8d290 Added GroupedPacketHandler to prevent rewriting the same packet multiple times 2020-11-20 05:37:13 +01:00
themode
3455c77eb7 Explain the role of each handlers 2020-11-20 04:48:33 +01:00
themode
e8ddf44c39 Stop hardcoding handler names 2020-11-20 04:36:33 +01:00
themode
0739b57dd1 Server packet listener now takes a collection of player, for future network optimization 2020-11-20 03:47:29 +01:00
themode
018786463d Replaced the channel traffic handler to GlobalChannelTrafficShapingHandler 2020-11-19 15:37:12 +01:00
themode
099a8bafdc Increase socket send buffer to 1MB 2020-11-19 08:29:34 +01:00
themode
828069c685 Cleanup + reduced default chunk view distance to 8 2020-11-19 07:00:41 +01:00
TheMode
fae8e30272 Reduced compression level to 3
Signed-off-by: TheMode <themode@outlook.fr>
2020-11-19 04:54:54 +01:00
Eoghanmc22
f307303758 Netty improvements 2020-11-18 20:28:56 -05:00
Eoghanmc22
618fd2b536 Begin optimizing netty. 2020-11-18 13:39:06 -05:00
themode
f30330c59b Added PlayerStartDiggingEvent warning 2020-11-18 13:22:23 +01:00
themode
408ce03cfb Made PacketDecoder more readable 2020-11-18 11:15:58 +01:00
themode
e619dd6a8e Set the default write & read limit to 75KB/s per connection 2020-11-18 11:11:21 +01:00
themode
553a280993 Per instance thread is now the default, added a configurable cooldown for player position refresh 2020-11-18 05:13:49 +01:00
JësFot
d738f9fddd Implement attribute instances 2020-11-17 14:59:47 +01:00
themode
089f9a30aa Comments about write/read limit of 0 2020-11-17 08:15:05 +01:00
themode
f965c5b9c9 Added write and read limit 2020-11-17 05:27:05 +01:00
themode
ddaa3a6678 Prevent potential synchronization issue while removing client cache 2020-11-17 01:33:12 +01:00