05-12-2015, 04:31 PM
Actually, one plugin of mine did hit a limit in the performance. When I was adding the web preview support for the Gallery plugin ( https://forum.cuberite.org/showthread.ph...4#pid19734 ) I first did the check for non-air blocks in Lua code. It processed a 16 * 16 * 256 area in several seconds on my laptop, which was really, really slow. That's why I ended up writing the cBlockArea:GetNonAirCropRelCoords() API function, which does this in a fraction of the time.
Which exactly illustrates the principle - if something is too slow for Lua, we implement it in C++ and add it to the API.
Which exactly illustrates the principle - if something is too slow for Lua, we implement it in C++ and add it to the API.