Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
Sign in to follow this  
RMXPirate

Mechacrash's Less Lag Tips!!

Recommended Posts

So a member of my forums posted this and it was a basic topic on how to reduce lag, here is his post:

 

OK!

 

ive been experimenting with RMVX and RMXP to see why in gods name XP has so much lag compared to its younger brother. After all VX has more need for memory and such because of its new features, this means that it SHOULD be slower. Yet it runs faster even at a higher FPS rate.

 

I found a few helpful things though that will keep the lag down by just a wittle itty bitty bit... but every little helps (tesco's very own quote!)

 

ok... top tip number 1:

remove any unneccessary Game_Temp variables. They are the biggest cause of lag, RMVX doesnt even use this same method for holding variables. I recommend removing the debug variables and the debug screen alltogether. The people playing your completed game wont need it so why keep it there (infact if you leave it there theres a higher chance your game WILL be hacked... trust me on that point... cough...).

 

Also if your using custom scripts that replace default ones, search them for their respective game_temp variables and if they DONT use them... remove the varaibles from the temp directory... after all temp is always running and global variables lag like hell.

 

top tip numbargh 2:

Use a little global variables as possible. When you dont need them then use class variables (@) or just string variables... of course this may not be possible depending on the situation... but for the love of god dont use attribute_accessor and such over global variables... its a pain in the arse and lags just as much!

 

top tip nummer drei:

When making a custom image menu system try to use a little images as possible... infact try to make it just one BIG image that uses scripts and stuff for writing. This way it doesnt have to update unneccessary images and wont lag as much

 

OMFG TOP TIP NO. 4!!!!!111:

if you are calling an image in a script, use the direct path not the RGSS method. They both access RGSSAD files so no problem when encrypted, but having to go through the variables and class of the RGSS method is foolish and slow, you might aswell just name the string and make it quicker... also this prevents a large majority of haxxing aswell!

 

tip top 5 number:

Once you have decided on a final title screen and music that you will set in the database, write the string directly into the script section of it... this, as above, stops the unneccessary script and class running and can save memory and FPS

 

the 6th tip that is at the top:

when you press a button in the menu it runs a command that is defined at a later time... strangely you can save FPS by defining it immediatly after the input... if you understand then good otherwise... learn to script!

 

 

ok well ill have to think up some more things coz im out for the moment... but keep trying stuff out and go by these tips... ive saved a maximum of 2 FPS on big maps and 1 FPS in normal scripts... doesnt sound like much but if your running at 38 FPS on a map then you would want the extra 2 FPS wouldnt you? Also if you turn up the framerate you'll need all the speed you can get... trust me

 

A simple note also is to raise the fps like this: Graphics.frame_rate = # place that under main and make the # anywhere from 40 to 120. I suggest 60 as ts perfect and doesn't make the game run too fast like 90 does!!

Share this post


Link to post
Share on other sites

It doesnt help alot but alot of the scripts have things in it that really are not needed at all! Then you go and add a custom script in it which pretty much sets up that variable etc again so you have it twice. All these small things..

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...