Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Reducing early lag in my map?
Rapture Offline
Posting Freak

Posts: 1,078
Threads: 79
Joined: May 2011
Reputation: 30
#1
Reducing early lag in my map?

map = 10MB

Like the title says, for the first 8-10 seconds of startup. Its extremely laggy. Even going between one map and back again, still very laggy. I have preloaded what little particle systems/sounds I have.

Any other way of reducing lag?
07-29-2011, 05:59 AM
Find
palistov Offline
Posting Freak

Posts: 1,208
Threads: 67
Joined: Mar 2011
Reputation: 57
#2
RE: Reducing early lag in my map?

Jeez what did you put in it to make it 10 mb? Did you put hundreds of decals? Cuz that'll do it.......

Anyways, it's likely you have entities with physics colliding. If you're, for example, using wood beams as welders or platforms, make sure you check the Set Static Physics box. If that's not the case, then it's caused by your objects falling at the beginning of the map, overloading the physics engine. To counter this, lower your entities closer to their resting positions, and utilize the 'Create on surface' option when placing other entities.

Good luck Smile


Also, if you can't fix your lag, create a fade in sequence on entrance.

void OnEnter() { FadeOut(0); SetPlayerActive(false); FadeGlobalSoundVolume(0, 0); AddTimer("", 3, "FadeIn"); }
void FadeIn(string &in timer) { FadeIn(2); SetPlayerActive(true); FadeGlobalSoundVolume(1, 3); }

(This post was last modified: 07-29-2011, 07:50 AM by palistov.)
07-29-2011, 07:38 AM
Find




Users browsing this thread: 1 Guest(s)