Charas-Project

Game Creation => Requests => Tutorials => Topic started by: Sir Kills A Lot on November 28, 2009, 01:43:27 PM

Title: Ugh! LAG!
Post by: Sir Kills A Lot on November 28, 2009, 01:43:27 PM
I have an issue that seems so stupid. My computer can load fallout 3 quick. But it can't load a 500x500 map in rmxp quickly. It takes forever. I was wondering if any one had a script or something that would speed up load time some how, or just a method of speeding it up.
Title: Re: Ugh! LAG!
Post by: fruckert on November 28, 2009, 01:47:48 PM
Only thing that I can think of is that you've LOADED the map with events.
I'm not a RPGM expert though, so Idunno.
Title: Re: Ugh! LAG!
Post by: ellie-is on November 28, 2009, 03:15:43 PM
RPG Maker Programming would have been a better place for this, since this area is for tutorials that arent for RPG Maker.

Anyway, yes, I have heard of scripts that make RMXP load faster. Dont know where to find them though as I dont use rmxp.

Btw, is it all the maps or just some?
Title: Re: Ugh! LAG!
Post by: SaiKar on November 28, 2009, 03:53:52 PM
I've never had a problem loading RMXP maps. Granted, my computer is pretty gewd, but so should yours.

Are you SURE you don't have unusual and weird scripts running that are slowing you down? They could be lagging you most of the time, with it being more noticeable during screen transitions.
Title: Re: Ugh! LAG!
Post by: Sir Kills A Lot on November 29, 2009, 01:53:16 AM
It's only on big maps. Like stuff over 100. I'm using a script that slows stuff down. (BLizzard's ABS script) But it shouldn't be so slow. It's 2d graphics.
Title: Re: Ugh! LAG!
Post by: SaiKar on November 29, 2009, 01:55:32 AM
The quality of the stuff you're loading may not have to do with the actual lag you experience. If the scripts are badly created, they could be doing a lot of needless looping very quickly: the faster your computer, the faster it loops, so you get lag either way. I'm not saying that's the cause of your problem but I've accidentally created similarly poorly-designed events in my own game and been blown away by how badly it destroys the framerate and loading speeds.
Title: Re: Ugh! LAG!
Post by: Emerates on November 29, 2009, 03:25:31 AM
Would it help to use only a few parallel processes at once, instead of one for each thing you want to accomplish?  I've been having this problem myself with a CMS I'm working on.
Title: Re: Ugh! LAG!
Post by: fruckert on November 29, 2009, 03:29:09 AM
The quality of the stuff you're loading may not have to do with the actual lag you experience. If the scripts are badly created, they could be doing a lot of needless looping very quickly: the faster your computer, the faster it loops, so you get lag either way. I'm not saying that's the cause of your problem but I've accidentally created similarly poorly-designed events in my own game and been blown away by how badly it destroys the framerate and loading speeds.
Listen to the sage.
I'd show us some of the scripts, one of us may catch a weird loop that you have.
Title: Re: Ugh! LAG!
Post by: Sir Kills A Lot on November 29, 2009, 04:30:39 PM
You can find the script here. I think he'd get mad if I posted it. The script is right on the page. You don't have to download it.
Title: Re: Ugh! LAG!
Post by: MissingName on November 29, 2009, 07:21:33 PM
Ah, I once accidentally had two opposite events active.  FPS went down to around 3 or 4.
Title: Re: Ugh! LAG!
Post by: SaiKar on November 30, 2009, 10:20:47 AM
Well, I'm not going to go through other people's scripts to solve your problems for you. You probably know more about Ruby than I do anyway. I'm just trying to give you a place to start since we can't see anything here that could be wrong.
Title: Re: Ugh! LAG!
Post by: Ben on November 30, 2009, 08:29:20 PM
you need an anti event lag, google "RMXP SCRIPT ARCHIVE" Ill bet you eventually find hundreds.
Title: Re: Ugh! LAG!
Post by: DragonBlaze on December 11, 2009, 03:13:30 AM
I'm guessing its a bad script. A lot of badly programmed scripts are set up so that every tile is tested against every tile, in a 500 x 500 map, that means that in every frame 500 ^ 500 tests are made. It has nothing to do with graphics, just way too many comparisons to make every frame. Use smaller maps or find a better script.
Title: Re: Ugh! LAG!
Post by: Darkfox on December 11, 2009, 03:21:27 AM
True. Added that Ruby isn't meant to process all that without some sacrifice. Takes down the speed. You have to be very sparing and free of unnecessary code or else it'll slow things down. So either that script is inefficient, or has holes in it. Added that it is spread over 500x500. I've actually experienced a similar problem in Charas Doom with weather effect scripts.
Title: Re: Ugh! LAG!
Post by: fruckert on December 11, 2009, 05:17:34 AM
*points out the fact that this was over a week ago*
Title: Re: Ugh! LAG!
Post by: Darkfox on December 11, 2009, 05:22:35 AM
And I just now noticed that. But got to put out my two cents anyways. XD We shut up now. o_o