Cuberite Forum
Lua Challenge: the Catastrophes plugin - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Discussion (https://forum.cuberite.org/forum-8.html)
+--- Thread: Lua Challenge: the Catastrophes plugin (/thread-1972.html)

Pages: 1 2 3 4 5 6 7 8 9 10


RE: Lua Challenge: the Catastrophes plugin - bearbin - 05-24-2015

You should profile the server, find out what's making it run so slowly.


RE: Lua Challenge: the Catastrophes plugin - tonibm19 - 05-24-2015

How much expensive is for the server to check height every tick?Tongue


RE: Lua Challenge: the Catastrophes plugin - DiamondToaster - 05-24-2015

It's just the sheer amount of entities that are involved in the process. It makes 2500+ falling block entities and a bunch of pickups.


RE: Lua Challenge: the Catastrophes plugin - bearbin - 05-24-2015

We want the server to be able to handle 2500 falling entities. With optimisation, that should be possible.


RE: Lua Challenge: the Catastrophes plugin - worktycho - 05-24-2015

If you've got a plugin that can trigger that many falling entities with console command, I'll take a look.


RE: Lua Challenge: the Catastrophes plugin - tigerw - 05-24-2015

I have an idea for optimisation: most cChunk::Get/SetBlock functions do multiple comparisons for error checking, which theoretically shouldn't be needed in release since I remember xoft saying in one of my PRs that those functions shouldn't do sanity checks for their callers, and someone else saying that the server will not be made to protect against badly written plugins.

Moving those checks into debug only conditions may help?


RE: Lua Challenge: the Catastrophes plugin - DiamondToaster - 05-24-2015

I'll upload the plugin once it stops crashing clients. Tongue


RE: Lua Challenge: the Catastrophes plugin - worktycho - 05-24-2015

@tiger I suspect that just inlining them would have a better cost/benefit ratio to start with.


RE: Lua Challenge: the Catastrophes plugin - LO1ZB - 05-24-2015

I can do profiling aswell. :>


RE: Lua Challenge: the Catastrophes plugin - NiLSPACE - 05-30-2015

I created a blackhole catastrophe.