Flip1299
  • Flip1299
  • 100% (Exalted)
  • Colonel Topic Starter
19 years ago
i've made a one player map for zero hour but it lags frequently. i can play any other map or mission without any lag whatsoever.

the specs for the map:

size: 350x350

11 scripts:

1. disabled upon success, evaluated once every second, active only in hard

2. disabled upon success, evaluated once every second, active only in normal

3. disabled upon success, evaluated once every second, active only in easy

4. disabled upon success, evaluated once every second, active in all difficulties

5. evaluated once every 10 seconds, active in all difficulties

6. evaluated once every 10 seconds, active in all difficulties

7. evaluated once every 10 seconds, active in all difficulties

8. disabled upon success, evaluated once every 10 seconds, active in all difficulties

9. disabled upon success, evaluated once every 10 seconds, active in all difficulties

10. evaluated once every 10 seconds, active in all difficulties

11. evaluated once every 10 seconds, active in all difficulties

can anyone give me advice on what's causing this lag?
UserPostedImage
Sponsor
Firion Corodix
19 years ago
how does it run if you remove the scripts?
also does it have alot of objects and trees?
UserPostedImage
Flip1299
  • Flip1299
  • 100% (Exalted)
  • Colonel Topic Starter
19 years ago
i knew i forget something...

it runs fine without the scripts, but generals challenge maps have many more of them.

it has quite a few objects, 60 toxin general buildings, about 20 civilian buildings, about 20 trees and 40 or so units that start on the map.

but, my PC does run at full speed with 3 hard armies and they build many more buildings and units than this (the AI also uses many more scripts).


UserPostedImage
Phe0n1x
  • Phe0n1x
  • 100% (Exalted)
  • Administrator
19 years ago
hmm, yes i think the more objects you have the more the engine will lag. i know this was the case for BFME/BFME2 i havent tried putting many objects in my generals maps. BUT it also depends on how much RAM you have and how good your video card is too.
UserPostedImage
fleetatks
19 years ago
having alot of different textures can lag the game too, see the official EA tutorial on 3 way blending if you put alot of textures
Email me if you ever need help (edited signature November 6th, 2014)
Flip1299
  • Flip1299
  • 100% (Exalted)
  • Colonel Topic Starter
19 years ago
i found the problem, it was just a matter of excluding every possibility.

scripts - AI has more - couldn't be them

map size - generals challenge has bigger - couldn't be this

textures - only 2 - couldn't be this

units - 140, less than 4 hard armies would build - possible but unlikely

river - have been known to cause lag - We have a winner!

i removed the river and used some water that runs under the entire map to make it. the lag stopped.

now i can finish it and find someone to rate it.

EDIT: BTW thanks for all the help everyone!
UserPostedImage
krit
  • krit
  • 100% (Exalted)
  • Commander in Chief
19 years ago
Another cause of lag: AI trying to bring it's units to unreachable areas...
UserPostedImage