Page 1 of 1

Destructible Buildings

Posted: 2023-05-30 13:20
by Catmouse
Hi,

I remember that there were multiple maps with destructible builds e.g. Kashan, but also others. There are also forum threads on that topic [1].

What is the status on that kind of game asset? Is there some empirical data how much a 100 player server can take before crashing?



[1] PR Forum URI

Re: Destructible Buildings

Posted: 2023-06-05 15:03
by ALADE3N
iirc a map only has definite number of destructible networkable info and a mapper who puts more than that limit might crash the map. So maybe some of the then destructible buildings and other objects in pr are now set to not get destroyed to save the servers the trouble of lagging and crashing. Maybe it is a preventive measure to evade that problem

Re: Destructible Buildings

Posted: 2023-06-05 17:37
by Mats391
The destroyable buildings got mainly removed due to performance issues. We found out that every destroyable building gets checked every frame on the server. Even if no players are close to it. This puts a big constant stress on the server that we decided is not worth it.
As Alade3n said there is also a maximum limit before things start crashing. Overall you should not plan anything around destroyable buildings and look more into using it in special places. For example Shahadah uses destructible objects to block windows that can be opened by player and this way transform the battlefield.

Re: Destructible Buildings

Posted: 2023-06-06 01:21
by Rabbit
Mats391 wrote: For example Shahadah uses destructible objects to block windows that can be opened by player and this way transform the battlefield.
Perfect example how that mapper was a fucking piece of shit.

Re: Destructible Buildings

Posted: 2023-06-11 08:47
by Catmouse
Mats391 wrote:The destroyable buildings got mainly removed due to performance issues. We found out that every destroyable building gets checked every frame on the server. Even if no players are close to it. This puts a big constant stress on the server that we decided is not worth it.
Hello Mats391,

thank you for the answer and explanation. That makes total sense to me.

Out of curiosity: How close are we operating to the server limit on the more sophisticated PR maps?

Quite sad that there is no source code for BF2 availible. This is probably be a big spot for optimization.

Re: Destructible Buildings

Posted: 2023-06-11 18:17
by Mats391
Catmouse wrote:Hello Mats391,

thank you for the answer and explanation. That makes total sense to me.

Out of curiosity: How close are we operating to the server limit on the more sophisticated PR maps?

Quite sad that there is no source code for BF2 availible. This is probably be a big spot for optimization.
Server limit is fine for most maps. From our experience some older maps are actually worse than new ones. For client we are pretty close to limit on some maps. I guess you all know the Ascheberg crashes, but things might change here soon too ;)