mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-04-21 00:07:30 +00:00
As I was lying in my bed, I came to a solution for the tick problem. While remembering how most of the time the server is sleeping, and how the TPS drops once costly operations are ticked, I reviewed mentally that part of the code, Server::tick(). Then I saw it: I was setting the next execution time using the time after it was executed as the base, but it should have been done using the tick start time - that way if something takes longer, the server will catch up and won't drop the TPS until the CPU hits its limit. I got up, got to my computer, and checked that function. It was exactly as I saw in a near-dream state, so I fixed it and tested things if they worked right. Now I'm fully awake and I can't sleep anymore, so I wrote this.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
PocketMine-MP is a free, open-source software that creates Minecraft: Pocket Edition servers and allows extending its functionalities
Homepage
Forums
Documentation
Plugin Repository
Official Jenkins server
API Documentation
Twitter @PocketMine
IRC Chat #pocketmine (or #mcpedevs) @ irc.freenode.net
#pocketmine + #mcpedevs channel WebIRC
Want to contribute?
- Check the Contributing Guidelines
Third-party Libraries/Protocols Used
- PHP Sockets
- PHP SQLite3
- PHP BCMath
- PHP pthreads by krakjoe: Threading for PHP - Share Nothing, Do Everything.
- PHP YAML by Bryan Davis: The Yaml PHP Extension provides a wrapper to the LibYAML library.
- LibYAML by Kirill Simonov: A YAML 1.1 parser and emitter written in C.
- cURL: cURL is a command line tool for transferring data with URL syntax
- Zlib: A Massively Spiffy Yet Delicately Unobtrusive Compression Library
- Source RCON Protocol
- UT3 Query Protocol
Description
Languages
PHP
99.9%