project reality header
Go Back   Project Reality Forums > PR:BF2 Mod Forums > PR:BF2 Community Modding
19 Sep 2024, 00:00:00 (PRT)
Register Developer Blogs Members List Search Quick Links
PR:BF2 Community Modding Making or wanting help making your own asset? Check in here

Reply
 
Thread Tools Display Modes
Old 2023-05-30, 13:20   #1
Catmouse
Default Destructible Buildings

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
Catmouse is offline
Last edited by Catmouse; 2023-05-30 at 13:27..
Reply With Quote
Old 2023-06-05, 15:03   #2
[R-DEV]​ALADE3N
PR:BF2 Developer

ALADE3N's Avatar
Default Re: Destructible Buildings

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

ALADE3N is offline Reply With Quote
Old 2023-06-05, 17:37   #3
[R-DEV]Mats391
PR:BF2 Lead Developer
Supporting Member
PR Server License Administrator

Mats391's Avatar
Default Re: Destructible Buildings

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.

Mineral: TIL that Wire-guided missiles actually use wire
Mats391 is offline Reply With Quote
Old 2023-06-06, 01:21   #4
Rabbit
Default Re: Destructible Buildings

Quote:
Originally Posted by Mats391 View Post
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.
Rabbit is offline Reply With Quote
Old 2023-06-11, 08:47   #5
Catmouse
Default Re: Destructible Buildings

Quote:
Originally Posted by Mats391 View Post
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.
Catmouse is offline Reply With Quote
Old 2023-06-11, 18:17   #6
[R-DEV]Mats391
PR:BF2 Lead Developer
Supporting Member
PR Server License Administrator

Mats391's Avatar
Default Re: Destructible Buildings

Quote:
Originally Posted by Catmouse View Post
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

Mineral: TIL that Wire-guided missiles actually use wire
Mats391 is offline Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



All times are GMT. The time now is 18:36.