KernelFactory 5.46.0
Generates (once per graph shape), caches on disk and loads the kernel class for a noise router. The generated file only depends on the worldgen data, not on the seed; it is require()d so that OPcache and the JIT can compile it like any other PHP file.
Constants
NAMESPACE
php
public const NAMESPACE = "pocketmine\\world\\generator\\vanilla\\compiled"Properties
$batchCorners
php
public static bool $batchCornersEvaluate cell corners column by column with vectorized (batch) code instead of point by point. Same values; much faster with the tracing JIT.
Methods
collectInterpolated()
php
public static function collectInterpolated(\pocketmine\world\generator\vanilla\density\DensityFunction $f, array &$out, array &$seen) : voidcreate()
php
public static function create(\pocketmine\world\generator\vanilla\NoiseRouter $router, string $cacheDir) : \pocketmine\world\generator\vanilla\compiler\CompiledKerneljitMode()
php
public static function jitMode() : stringReturns "tracing", "function" or "off" for the running process' JIT configuration.
