OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: bringer_25 on 30 Sep 2002, 02:05:12

Title: Too many objects
Post by: bringer_25 on 30 Sep 2002, 02:05:12
when creating a mission and i put a lot of objects and markers and all that nice stuff, my game starts to play slow, until a certain amount is gone, how do i fix this
Title: Re:Too many objects
Post by: Artak on 30 Sep 2002, 02:20:39
It's called lag and there's no way getting rid of it unless you buy yourself some bigger better and faster components on your pc.

Or simply use less objects.

Or adjust your graphics settings.

Or set your viewdistance to 30 (don't recommend this one)

 ;D
Title: Re:Too many objects
Post by: bringer_25 on 30 Sep 2002, 02:46:20
my computer is very fast and is easily runs this program
Title: Re:Too many objects
Post by: LCD on 30 Sep 2002, 02:46:54
Or set your viewdistance to 30 (don't recommend this one)

 ;D

yeah but da minimum range is 500 so he wil never put it 2 30  :P

LCD OUT
Title: Re:Too many objects
Post by: Artak on 30 Sep 2002, 02:48:57
 :hmm:


Just how fast is it and how many of those objects have you stuffed there?

@LCD: True but I was only humorously pointing out that 30 is the same thing as 500. You still can't see where your going  :P ;)
Title: Re:Too many objects
Post by: Black Magic on 30 Sep 2002, 02:53:14
my computer is very fast and is easily runs this program
Even so that has nothing to do with it. There is a difference between the game running fine and then your custom mission running crappy - and that is, as Artak said, called lag. So here are your options as I see it:
1. Reduce amount of objects.
2. Reduce your settings.
3. Upgrade your computer.
4. Get real technical and deleteVehicle objects you don't need then createVehicle those you do need simultaneously as you go through the mission.
5. Suicide - in no way endorsed by me!
6. Live a simplistic Amish lifestyle, which is OFP-free, in a convent in France!
Hope that helps. ::)
Title: Re:Too many objects
Post by: macguba on 30 Sep 2002, 12:09:53
My computer is completely crap so I'm familiar with the problem.      Fully endorse all the tips already mentioned, here's a few more

- with careful positioning and playtesting you can often significantly reduce the number of units you need.    Also you can use fewer units with higher skill.

- waypoints slow things down, so only have ones you really need

- triggers also.   A trigger has to run all the time so use scripts whenever you can - they only run when you tell them to.    Use logic to reduce the number of triggers you need

- aircraft are real a real problem

- vehicles are next:  have as few types as possible ie if there are no US helicopters don't have 2 shilkas and 2 bmps defending the base, just have 4 bmps.

- lag is worst when there are lots of units close to the player.  It's not so bad if they are far away

- it may help if you group static objects (tents, sandbags), not sure

- be pedantic about turning off background programmes (task scheduler, antivirus etc) ... but make sure you remember to turn them back on again later

- reboot before playing


My computer is below the minimum spec for Resistance and I managed to finish the campaign.   Mind you, more than once I had to turn up the view distance, have a look, then turn it down again