Commit Graph

74 Commits

Author SHA1 Message Date
TheMode
495164d03b Use single thread by default 2021-04-26 16:27:50 +02:00
TheMode
b47946bfed Remove Acquisition.java 2021-04-25 19:08:04 +02:00
TheMode
845a8608db Simplify Acquirable, support for all objects 2021-04-24 18:14:12 +02:00
TheMode
8e9838c6b6 Add tick scheduler to BenchmarkManager 2021-04-23 10:20:54 +02:00
TheMode
defdbea29b Added entity/player consumer for inheritance 2021-04-23 08:59:40 +02:00
TheMode
370f4c2f57 Added more options inside ThreadProvider 2021-04-22 19:33:07 +02:00
TheMode
297652c610 Remove generic Acquirable 2021-04-22 16:38:37 +02:00
TheMode
dba368d16f Thread count should depend on the processor count 2021-04-21 17:14:40 +02:00
TheMode
2aba4c49f6 Change stresstest to profile per-instance thread 2021-04-20 10:18:48 +02:00
themode
c91d957fe4 Merge branch 'master' into acquirable 2021-04-20 09:50:28 +02:00
TheMode
1f08f5dc34 Use a parallel stream
Signed-off-by: TheMode <themode@outlook.fr>
2021-04-19 07:42:48 +02:00
TheMode
1dbd3078c3 Fix incremental thread refresh 2021-04-18 11:53:38 +02:00
TheMode
92f30070db Implement incremental chunk thread refresh 2021-04-18 11:28:28 +02:00
TheMode
e9f13d0a82 WIP dynamic chunk thread change 2021-04-18 06:29:44 +02:00
TheMode
7dd6aa2360 Separate PerChunkThreadProvider from PerInstanceThreadProvider, support arbitrary ThreadProvider#findThread number 2021-04-18 01:55:35 +02:00
TheMode
eb63681c37 better comment 2021-04-18 00:00:02 +02:00
TheMode
23664292de Simplify acquisition, reduce overhead 2021-04-17 14:22:47 +02:00
TheMode
3b7353300d Acquisition rework 2021-04-17 02:50:33 +02:00
TheMode
b5add32ad6 Added AcquirableCollection + waiting time monitor 2021-04-15 09:51:37 +02:00
TheMode
f4ee5505ca Fix tick thread not being properly terminated 2021-04-15 04:06:55 +02:00
TheMode
11b1bbea2e Update entities thread 2021-04-15 01:44:08 +02:00
TheMode
fec36d4706 Run thread directly 2021-04-14 22:48:13 +02:00
TheMode
a55ea6d0c2 WIP per-chunk thread 2021-04-14 21:29:37 +02:00
TheMode
356150847e Per-chunk batch management 2021-04-14 20:32:02 +02:00
TheMode
5adbc287b3 Added TickMonitor 2021-04-11 00:09:01 +02:00
TheMode
5ef4d0f9b4 Reduce the overhead of converting chunk indexes to chunk object, dont tick empty entity list 2021-04-09 18:22:29 +02:00
TheMode
01d233f7d8 Overall performance improvement 2021-04-09 05:40:40 +02:00
themode
510f8d7733 Give a name to the tick scheduler thread 2021-03-21 15:44:37 +01:00
Tyan
855c8af455 Added ExceptionManager for custom exception handling 2021-01-20 11:43:45 +01:00
LeoDog896
ac68c094ce Better keepalive and connection handling 2021-01-17 19:26:20 -05:00
LeoDog896
3536bdc856 Microoptimization cleanup
Just some small microoptimizations including preferring fastutils, Removing unnecessary checks already dealt with using @NotNull, all since I had extra unplanned free time.
2021-01-15 11:08:11 -05:00
themode
924fac562b Print exceptions properly during server tick 2020-12-28 12:27:25 +01:00
Felix Cravic
42cedf3fbf Use Guava to initialize concurrent linked queues 2020-12-08 09:36:19 +01:00
Felix Cravic
5de6e466ee Execute the shutdown tasks before closing the netty server 2020-12-02 20:55:05 +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
Eoghanmc22
012e65337d Improve follow target goal 2020-11-25 21:36:18 -05: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
themode
c60f625c55 Revamp of the packet sending code, added possibility to have listeners for outgoing packets 2020-11-13 07:43:35 +01:00
themode
60d01fab11 Fix main loop sleep 2020-11-12 00:56:36 +01:00
themode
041bc721c8 Cleanup UpdateManager 2020-11-12 00:18:36 +01:00
themode
ad357d70fc Added ArgumentRelativeBlockPosition, ArgumentRelativeVec3 and ArgumentRelativeVec2 2020-11-10 23:16:35 +01:00
themode
419541b878 UpdateManager comments + synchronization fix 2020-10-22 15:57:27 +02:00
themode
c130fb6144 Added getter for ExtensionManager 2020-10-17 16:30:37 +02:00
themode
660a67e53e English fix 2020-10-15 21:16:31 +02:00
themode
0e5831cdc3 Cleanup + typo fix 2020-10-13 12:49:29 +02:00
themode
a273c0fd02 Comments for batches 2020-10-13 05:40:23 +02:00
themode
f62117dbe0 Info related to chunk load/unload signal, required to create an instance implementation 2020-10-13 04:31:03 +02:00
themode
f1dccfacc3 Fixed instance ticks not being executed if the chunk list is empty 2020-10-13 04:10:37 +02:00
themode
9184b3054f Fix the first #setInstance being called in the main update thread 2020-10-12 04:14:06 +02:00
jglrxavpok
b6fc3ee978 Publish with Javadoc & Sources 2020-09-20 15:04:07 +02:00