GithubHelp home page GithubHelp logo

pmmp / pocketmine-c-chunkutils Goto Github PK

View Code? Open in Web Editor NEW
21.0 6.0 3.0 18 KB

PHP C extension implementing some chunk conversion methods for PocketMine-MP

License: GNU Lesser General Public License v3.0

M4 0.76% C 18.58% PHP 79.76% Batchfile 0.89%
pocketmine-mp php-extension minecraft github-actions-enabled php8

pocketmine-c-chunkutils's Introduction

PocketMine-C ChunkUtils extension

Travis CI build status AppVeyor Build status

This extension provides a C implementation of the ChunkUtils class in PocketMine-MP. It is intended as a drop-in performance enhancement if the user is using Anvil-formatted worlds (Minecraft PC worlds).

Why?

The PHP implementations of the chunk data conversion methods are (relatively) extremely slow. This extension provides chunk load time enhancements of up to 10-200x faster per chunk loaded or unloaded.

Installation

Requirements

  • PHP >=7.0
  • PocketMine-MP 1.6.2dev with API 3.0.0-ALPHA3 or later

To compile, you'll need to add the source to your ext source folder in your PHP source and compile PHP with the --enable-pocketmine-chunkutils option. No core changes are needed to PocketMine-MP, simply enable the extension and run the server. With Anvil worlds, you should see a vast performance improvement.

Windows

Because compiling PHP on Windows isn't most people's bag, you can obtain a DLL for this extension from AppVeyor. Drop the DLL into the extensions directory for your PHP installation and add extension=php_pocketmine_chunkutils.dll to your php.ini.

FAQ

  • I'm using PMAnvil and/or McRegion worlds, will this extension provide a performance boost to those?

No. This extension provides a fast C replacement for a class which is used primarily by the Anvil chunk I/O provider. This extension simply accelerates Anvil chunk conversion to make PC worlds usable.

pocketmine-c-chunkutils's People

Contributors

dktapps avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.