128 Commits

Author SHA1 Message Date
Shoghi Cervantes
e137ac4c56 Base PHP7 work to make it "run" - READ NEXT LINES!
All plugins will need to bump the API if they want to use this.
NOTE THAT THIS IS NOT THE FINAL API 2.0.0 AND THAT THERE WILL BE MORE CHANGES.
To start updating, you might also want to read https://secure.php.net/manual/en/migration70.php and specifically https://secure.php.net/manual/en/migration70.incompatible.php

To compile PHP7 with some of the required dependencies, use https://gist.github.com/shoghicp/166ab26ce5cc7a390f45
ONLY LINUX IS TESTED, DO NOT ASK FOR OTHER PLATFORMS!

----- THIS VERSION IS NOT SUPPORTED -----

This version WILL crash randomly in unexpected places due to PHP7, pthreads, PocketMine or cosmic rays.

Handle with care, and store under direct sunlight for the best performance.
2015-09-10 21:29:29 +02:00
Shoghi Cervantes
5621ab0c49 Updated some packets for 0.12, UUIDs, other stuff! 2015-08-02 01:22:36 +02:00
Marcus
60ab35774a Fix wrong size increasing code. 2015-07-24 15:14:17 +08:00
Shoghi Cervantes
be9f5521e1
Fixed undefined index on async worker crash 2015-06-19 18:36:08 +02:00
Shoghi Cervantes
33e312c7d0
Added extra memory reportings (heap, stack), stop tasks faster, added extra timeouts fro ServerKiller 2015-06-13 15:37:02 +02:00
Shoghi Cervantes
7cf5df7e46 New console output formatting 2015-06-09 14:40:40 +02:00
Shoghi Cervantes
149234f125
Added asynchronous file writing 2015-05-22 16:32:08 +02:00
Shoghi Cervantes
cfe5ca91b2
Updated endpoint 2015-05-21 16:31:42 +02:00
Shoghi Cervantes
46f20d36b3
Improved unique id generation for server 2015-05-21 12:59:33 +02:00
Shoghi Cervantes
cde2d39029
New statistics system 2015-05-21 11:41:11 +02:00
Shoghi Cervantes
1a1b8830a4
Added MemoryManager object watcher for object leak debugging, improved SPL Thread/Worker stopping, fixed some possible weak references crashing unexpectedly 2015-05-09 16:11:12 +02:00
Shoghi Cervantes
fbdbac06cc New delayed teleporting system 2015-04-26 23:04:24 +02:00
Shoghi Cervantes
fba12f2a13 Be sure that AsyncTask finish executing, fixes #2931 2015-04-25 17:52:57 +02:00
Shoghi Cervantes
7ad98d4659 Deprecated CallbackTask, moved sleep checking to level 2015-04-25 17:28:30 +02:00
Shoghi Cervantes
d4cae729c3 Added AsyncTasks timings 2015-04-24 17:21:39 +02:00
Shoghi Cervantes
b2c25eaf36
Added MemoryManager, new memory properties, improved performance, updated RakLib, fixed misc. bugs 2015-04-18 20:13:52 +02:00
Shoghi Cervantes
88797d4c6c
Enabled GC on AsyncWorker 2015-04-15 20:47:34 +02:00
Shoghi Cervantes
71657a2a4e Improved effects, threading changes 2015-04-08 17:31:06 +02:00
Shoghi Cervantes
08f2b7f291
Moved chunk population to async tasks, and no more cut trees! 2015-03-27 01:57:08 +01:00
Shoghi Cervantes
72c4c01542 Yay generation uses async tasks 2015-03-26 18:21:39 +01:00
Shoghi Cervantes
962c28aaca
BatchPacket, compress any packet depending on the size, really fast threaded chunk sending 2015-03-26 00:06:46 +01:00
Shoghi Cervantes
11c13cd666
Implemented Threaded ClassLoader, improves class loading while on different threads (no need to synchronize states) 2015-03-14 15:22:13 +01:00
Shoghi Cervantes
24c6cca664
Updated RakLib, fixed help message not showing command, added documentation to Plugin->getResource() 2015-01-14 17:23:16 +01:00
Shoghi Cervantes
37fd0372cc
Added GarbageCollectionTask, workaround for weird PHP behaviour when using --disable-ansi 2015-01-06 19:45:41 +01:00
Shoghi Cervantes
9c28f0a5be
Decrease async worker task amount after crashed task 2015-01-05 02:41:14 +01:00
Shoghi Cervantes
5bf5014b60
Added Async Task crash warning 2015-01-05 00:16:47 +01:00
Shoghi Cervantes
074c8b876d
Cleaned up code 2015-01-03 16:07:49 +01:00
Shoghi Cervantes
8e3667c95b
Fixed messages and default settings 2015-01-03 02:56:46 +01:00
Shoghi Cervantes
692045d714
Improved threading and resource usage, new defaults 2015-01-02 18:46:39 +01:00
Shoghi Cervantes
747f7685e7 Fix formatting issues due to bad IDE settings 2014-12-07 16:30:04 +01:00
PEMapModder
941961f5ef Added internal use warning for TaskHandler::cancel()
It is confusing for some developers to whether to use this function or `ServerScheduler::cancelTask($taskId)`. It is better to add warning in the documentation.
2014-12-01 16:25:37 +08:00
Shoghi Cervantes
4a90ac270f Improved exception handling and debugging 2014-11-22 13:52:36 +01:00
Shoghi Cervantes
66acb5cdd7 Possible fix for crashing server not stopping 2014-10-31 23:10:12 +01:00
Shoghi Cervantes
8c4faa8622 Added extra Exceptions 2014-10-28 21:07:12 +01:00
Shoghi Cervantes
8637b7f5a3 Fixed Tasks deleting their Timings reports 2014-10-16 12:49:26 +02:00
Shoghi Cervantes
9b85abd75e Micro-optimizations 2014-10-15 10:44:01 +02:00
Shoghi Cervantes
ebb844fa52 Removed unused code, fixed undefined variables 2014-10-11 22:22:51 +02:00
Shoghi Cervantes
7f85e37540 Worked on scheduler 2014-10-11 16:36:38 +02:00
Shoghi Cervantes
baf06dc363 Revert "Use Collectable class on AsyncTask, removed task collection workaround on ServerScheduler"
This reverts commit 0dba14074a634e82539735c3be88c6ae31b0be05.
2014-10-11 00:03:46 +02:00
Shoghi Cervantes
0dba14074a Use Collectable class on AsyncTask, removed task collection workaround on ServerScheduler 2014-10-10 20:53:28 +02:00
Shoghi Cervantes
3e1ea23036 Fixed CallbackTask name 2014-09-19 09:46:38 +02:00
Shoghi Cervantes
d312d2a143 Possible fix for #2046, removed embedded class names 2014-09-19 09:44:58 +02:00
Shoghi Cervantes
f4ae58dda2 Removed pthreads workarounds 2014-09-10 15:11:56 +02:00
Shoghi Cervantes
dea4513c34 Possible fix for #2041 2014-09-03 11:55:49 +02:00
Shoghi Cervantes
11f684d803 Improved CallbackTask timings data 2014-09-01 12:44:52 +02:00
Shoghi Cervantes
f4b92bcdfc Fixed #1980 2014-08-27 11:41:00 +02:00
Shoghi Cervantes
bda597a71e Moved spl to PocketMine-SPL 2014-08-25 20:54:53 +02:00
Shoghi Cervantes
db7222976e Code cleanup 2014-08-21 17:26:41 +02:00
Shoghi Cervantes
f60e2860e8 Release strong weak references on close, closes #1883 2014-08-15 13:41:13 +02:00
Shoghi Cervantes
fee7f5060b Made AsyncTask::onCompletion() implementation optional 2014-08-10 18:15:06 +02:00