-
Notifications
You must be signed in to change notification settings - Fork 8
Bad performance when exploding a lot of TNT #8
Comments
Ion creates a ArrayList in every Explosion call, that's why is inefficient |
I don't think creating new list in every explosion is the worst part of it. |
@andreasdc If possible, can you please include the link to the full spark profiler result? |
currently that's not possible, but I can share more screenshots or provide another result. |
It has to raytrace whether the entity is obscured which is very hot code with explosions. If we have 10000 TNT going off in the same tick and in random locations but within range of each other, it would end up having to raytrace over 37 million times. |
Is there a way to make it better? |
Removal updates are queued and dispatched every tick. If the server is taking a while to process a tick, the entity can exist for a period of time client side until the update is sent out. |
That's a little bit problematic too. :/ |
The text was updated successfully, but these errors were encountered: