Shoghi Cervantes 352497d88c Improves server ticking.
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.
2014-09-04 01:04:09 +02:00
2014-09-04 01:04:09 +02:00
2014-03-05 10:16:08 +01:00
2014-08-25 20:54:53 +02:00
2014-06-09 11:49:52 +02:00
2012-12-07 02:24:55 +01:00
2014-07-26 15:08:48 +02:00
2014-08-01 12:49:53 +02:00

PocketMine-MP

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?

Third-party Libraries/Protocols Used

Languages
PHP 99.9%