OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Black Operative on 25 Jun 2003, 19:49:05

Title: Do deleted units still lag the game?
Post by: Black Operative on 25 Jun 2003, 19:49:05
Wouldn't this be just logical as the units that have been deleted during the missions had to be loaded into the memory before?


Thanks for any replies! :)
Title: Re:Do deleted units still lag the game?
Post by: Artak on 25 Jun 2003, 20:21:54
dunno about that but I do know that deleting masses of bodies does help.
Title: Re:Do deleted units still lag the game?
Post by: Doolittle on 25 Jun 2003, 21:48:55
Well I know when I look at an object for the first time, my computer stutters as it is loaded into memory.  So I would imagine any vehicle that someone has not "seen" that was deleted....will not "take up memory" for that user since it was never loaded in the first place.

Doolittle
Title: Re:Do deleted units still lag the game?
Post by: Black Operative on 25 Jun 2003, 22:46:31
Well I know when I look at an object for the first time, my computer stutters as it is loaded into memory.  So I would imagine any vehicle that someone has not "seen" that was deleted....will not "take up memory" for that user since it was never loaded in the first place.

Doolittle

Makes sense, and I got the same effect when i first see an object. Thanks buddies! :)
Title: Re:Do deleted units still lag the game?
Post by: TrackenHit on 26 Jun 2003, 04:32:47
It shouldn't, and if it does....BAD BIS, BAD EVIL BIS FOR BAD PROGRAMMING...but I think they where smart enough to avoid that ;).

That stutering is just from textures loading from the harddrive, so thats all it is.  If you delete the object then it doesn't require textures to be loaded. Textures are what slow a game down the most (not to mention horrible programming).  
Title: Re:Do deleted units still lag the game?
Post by: DrStrangelove on 26 Jun 2003, 17:58:22
I tested this with my spawn script, but only at mapstart i'm afraid.

A soldier type that isn't on the map already (living or dead) will lag in a spawn script because he has to be loaded into memory.

A soldier that is placed on the map in the editor but is deleted at mapstart (put "deleteVehicle this" into his init line) ALSO lags. OpF is smart enought to see that the resources doesn't need to be loaded for this soldier. weird.

Dunno about units in midgame tho. Somebody should test this.
Title: Re:Do deleted units still lag the game?
Post by: TrackenHit on 27 Jun 2003, 01:12:46
You have to remember that when the units are created at mapstart, all the textures are loaded before the extra code.  So I guess it deletes afterwards.  Does it still lag after all the units are deleted?
Title: Re:Do deleted units still lag the game?
Post by: IlikeOFP on 27 Jun 2003, 20:20:28
I think that if a unit is deleted during some point in the mission it will take away so little lag you won't notice that its gone.

For example on my first mission I went kinda overboard with units and had about maybe a little over 200 and I was using a 1.8Ghz processor.  One thing I have noticed lately is yes it will lag if about 100 units including wire fences and stuff it will have noticeable lag.

But yes I do think that only if there are a considerable amount of guys around that it will lag that much and think about does it lagg when you play the map with no other units on it except you.  If you really look closely enough adding maybe 100 guys will not do anything because look at the size and detail of the map.  If anything I think it would make the game lag.

So I say that :noo: it won't make a difference.

Die Russian :gunman:  :beat: hoorah hes dead  ;D
Title: Re:Do deleted units still lag the game?
Post by: Doolittle on 08 Jul 2003, 00:22:53
I think with units it might also have to do with that unit's AI routines.  'cause if you think about it the only graphics difference between a MG guy and a soldier is the weapon.

Doolittle
Title: Re:Do deleted units still lag the game?
Post by: _hammy_ on 08 Jul 2003, 16:48:06
yesw it does reduce lag, i can really notice it since my comp sucks bad.