optimizations for maps with large unitcount

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Bantha55
2nd Lieutenant
2nd Lieutenant
Posts: 407
Joined: Sun Jun 10, 2007 1:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Germany
Contact:

optimizations for maps with large unitcount

Post by Bantha55 »

All my maps have large unitcounts and you know this brings allways some adverse effects like:

-the map may lagg
-the map may crash if you zoom in with a sniper rifle, bowcaster etc. (matrix error)
-effects may not show up
-too many units with too many loud sounds make the map crash (list pool error)

I searched for ways to optimize them:

-lower the sight distance in the sky file
-add SetMemoryPoolSize ("FLEffectObject::OffsetMatrix", 500) to your lua (more effects will show up but if you have REALLY HIGH unitcounts (just like me) there are although not all)
-use custom sounds that you can change like you want

You see, these aren´t perfect optimizations. Do you know other/better ones?
User avatar
Eggman
Master Bounty Hunter
Master Bounty Hunter
Posts: 1516
Joined: Mon Jul 16, 2007 1:30 pm
Projects :: Battlefront Chronicles
Location: Las Vegas

Re: optimizations for maps with large unitcount

Post by Eggman »

Try designing the map so that only a fraction of the units will ever be on screen at once. I once had a map going with at least 150 units per side, maybe even 200, but I had no problems because the design of the map split the battle up into three different areas, meaning that you would never have more than 100 units on screen at once.
User avatar
Bantha55
2nd Lieutenant
2nd Lieutenant
Posts: 407
Joined: Sun Jun 10, 2007 1:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Germany
Contact:

Re: optimizations for maps with large unitcount

Post by Bantha55 »

yes, i know this helps, but i don´t know how to split up the imperials in my hoth map. like in the movie they come all from one point of the map with the ATATs and ATSTs and so on. If you zoom in then, the map crashes allmost everytime...
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: optimizations for maps with large unitcount

Post by Teancum »

Use sectors/etc to section off what's visible/shown and what's not. If you have a hill that doesn't allow you to see over the other side, you may want to do sectors so the game isn't trying to render what can't/doesn't need to be seen. Most of that is already handled by the engine, but it helps with optimizations.
Post Reply