Frictional Games Forum (read-only)
Reducing early lag in my map? - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Reducing early lag in my map? (/thread-9460.html)



Reducing early lag in my map? - Rapture - 07-29-2011

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?


RE: Reducing early lag in my map? - palistov - 07-29-2011

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); }