Lua Challenge: the Catastrophes plugin
#41
You should profile the server, find out what's making it run so slowly.
Reply
Thanks given by:
#42
How much expensive is for the server to check height every tick?Tongue
Reply
Thanks given by:
#43
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.
Reply
Thanks given by:
#44
We want the server to be able to handle 2500 falling entities. With optimisation, that should be possible.
Reply
Thanks given by:
#45
If you've got a plugin that can trigger that many falling entities with console command, I'll take a look.
Reply
Thanks given by:
#46
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?
Reply
Thanks given by:
#47
I'll upload the plugin once it stops crashing clients. Tongue
Reply
Thanks given by:
#48
@tiger I suspect that just inlining them would have a better cost/benefit ratio to start with.
Reply
Thanks given by:
#49
I can do profiling aswell. :>
Reply
Thanks given by:
#50
I created a blackhole catastrophe.
Reply
Thanks given by:




Users browsing this thread: 2 Guest(s)