Charas-Project

Game Creation => RPG Maker => Topic started by: Deathslayer1245 on August 25, 2012, 03:10:43 AM

Title: Extreme game lag
Post by: Deathslayer1245 on August 25, 2012, 03:10:43 AM
I'm using Rpg Maker 2003. I finally got my game to the first boss battle. When I went to check out how the story was coming along, I was hit with an incredible lag. The character barely moved and i didn't know why. I heard that it might be because of too many parallel processes but i'm not sure about this. Also i thought that it wouldn't matter if they were in different maps. So i'm hoping that someone can tell me why my game is lagging so much. It would be appreciated.
Title: Re: Extreme game lag
Post by: drenrin2120 on August 25, 2012, 05:21:03 AM
It depends on what youre parallel processes are doing. you got to remember parallel process events constantly loop over and over. if you,re parallel process event doesnt have ab end process event or erase event command it will continue ti loop and lag your game. you have to be careful with these kind of events, if you want it to do only one thing you need to put an erase event command or an end process event command. for more complicated parallel process events you need key input events. otherwise you should just use auto event. Auto event doesnt loop. it stops executing at the end of the event.
Title: Re: Extreme game lag
Post by: Deathslayer1245 on August 25, 2012, 05:43:14 PM
Thanks! I changed almost all parallel processes (except the one that makes the first bgm play) and changed them to auto-start and my game runs smooth again. Thanks for helping!
Title: Re: Extreme game lag
Post by: daoman89 on December 30, 2012, 07:22:58 PM
Just so you know, you can put multiple things in one event.  Such as changing bgm, adding characters to the map, movements, animations, etc etc.  The only time you would probably use a separate event would be if, like mr. drenin said, it needs to loop such as thunder in the background.  I will show you an example that works if you want.  Also remember that auto-starts HAVE to end if they do certain things and then are not needed otherwise the game will freeze.  Feel free to correct me if i'm wrong drenin.
Title: Re: Extreme game lag
Post by: drenrin2120 on December 30, 2012, 07:32:02 PM
Auto events loop too and need a switch at the end that triggers a separate page that isnt an autp and parallel process. Also, try not and necropost. :D
Title: Re: Extreme game lag
Post by: zuhane on December 31, 2012, 04:02:31 AM
Yeah, a good way to keep it neat and optimized is to only have parallel events running when they need to run. Keep everything on a switch on, switch off
kind of basis. You could write 10,000 lines of code, and if it's not activated, the compiler will jump over it, not read it, and save you some huge processing power!