The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Scripting => Topic started by: Dark Dragon X on March 16, 2007, 08:07:05 PM

Title: [RESOLVED] Script lag
Post by: Dark Dragon X on March 16, 2007, 08:07:05 PM
OK I was scripting...and then I finally was making the last thing in my very first script...
and then a horrible thing happened, it was a CMS, and when it was activated the game started lagging..;-;
it went from 39fps to 9 fps I guess..I need some help 'ere
Title: Re: Script lag
Post by: Blizzard on March 16, 2007, 08:14:40 PM
There are several things that can cause lag. There's a topic about this somewhere. You should post there instead of making a new thread.

Also, specifically it could lag, because you are re-drawing the windows all the time and/or having many windows created, but turned the just inactive/invisible. Every extra window needs some CPU and every window redraw needs time to be completed. So if you constantly re-draw (also called refresh), lag will increase immensely.
Title: Re: Script lag
Post by: Dark Dragon X on March 16, 2007, 08:37:13 PM
Thanks for the explaination Blizz, I actually just solved the problem..
looks like when I didn't identify the font, the program got confused or somthin..
OR editing a window from another class made the problem..I'm not sure, maybe neither..
anyway I was cursing RGSS for 1 hour now..I guess I this emptied my hatred of RGSS...well for now XD..
Thanks again.
Title: Re: Script lag
Post by: Blizzard on March 16, 2007, 08:44:32 PM
Alright then. Have a good time on the forum. ^__^
Title: Re: Script lag
Post by: :) on March 16, 2007, 10:15:46 PM
THis looks solved, add [RESOLVED] to topic title.