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
Lag issue when triggering scripts
ExpectedIdentifier Offline
Member

Posts: 234
Threads: 10
Joined: Sep 2012
Reputation: 11
#2
RE: Lag issue when triggering scripts

(05-25-2013, 06:14 PM)junkfood2121 Wrote: Hey!

I need some hints on how to reduce or remove the lag when the player is triggering scripts. The lag makes the player know they are to expect something, which I do not like hehe.

I have not read so much about the map_cache files, but if I were to play through the entire mod, and then save the cache files it creates when releasing the mod, will it make the scripts lag less, or will it just bug out?

Thanks!

If you're playing sounds and using particle systems when the event is triggered, you need to preload them when entering the map Smile do this by using something like this:

void OnEnter()
{
PreloadParticleSystem("particle.ps");
PreloadSound("sound");
}
(This post was last modified: 05-25-2013, 06:30 PM by ExpectedIdentifier.)
05-25-2013, 06:28 PM
Find


Messages In This Thread
RE: Lag issue when triggering scripts - by ExpectedIdentifier - 05-25-2013, 06:28 PM



Users browsing this thread: 1 Guest(s)