Frictional Games Forum (read-only)

Full Version: Reducing early lag in my map?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
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.

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