05-24-2015, 03:31 AM
You should profile the server, find out what's making it run so slowly.
Lua Challenge: the Catastrophes plugin
|
05-24-2015, 03:31 AM
You should profile the server, find out what's making it run so slowly.
05-24-2015, 03:52 AM
How much expensive is for the server to check height every tick?
05-24-2015, 05:26 AM
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.
05-24-2015, 05:46 AM
We want the server to be able to handle 2500 falling entities. With optimisation, that should be possible.
05-24-2015, 06:02 AM
If you've got a plugin that can trigger that many falling entities with console command, I'll take a look.
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?
05-24-2015, 09:01 AM
I'll upload the plugin once it stops crashing clients.
05-24-2015, 09:13 AM
@tiger I suspect that just inlining them would have a better cost/benefit ratio to start with.
05-24-2015, 11:14 AM
I can do profiling aswell. :>
05-30-2015, 01:32 AM
I created a blackhole catastrophe.
|
« Next Oldest | Next Newest »
|