Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

 
Reply to this topicStart new topic
> Major lag while displaying text in battle.
mast3rshake2049
post Jul 4 2011, 02:29 AM
Post #1


Level 3
Group Icon

Group: Member
Posts: 33
Type: Musician
RM Skill: Intermediate




Ok, so i made a cut scene that involves a battle that you have to lose. and at the beginning of this battle theres a little bit of text, just the characters dissing eachother before the fight.

Now the problem is that while the text is being displayed the game lags horribly. so much so that the text window literally lags while fading in. As soon as the little chat is over and the fighting begins as normal the lag disappears and the game continues to run smooth. Now this really confuses me as displaying text should be one of the easiest things for the game to do! I have also tried using different triggers to get the text to appear and they all have the same effect.

Does anyone have any ideas as to why this might be happening? I have had lag issues before and they were related to limit breaking the database and common events. (it turns out the game continuously loads and rechecks all common events even when not in use!) So to counter that lag i have drastically reduced the number of common events i have. (its currently at the regular limit of 999) And after reducing the number of common events i have had no lag issues....until this battle text lag that is. Could the database limit break have anything to do with this? i dont see why it would. Or perhaps i have to many troops in the DB? (its capped at 6000) But i dont see why it would as during that battle it should only have to access that specific troop and the other 5999 should be irrelevant. (and they seem to be once the text disappears.

So thank you in advance for any help.


__________________________
My youtube music link. *All works are entirely original & were made by me in reason 4.0, Enjoy :)*
http://youtube.com/leonardozuccarelli
Go to the top of the page
 
+Quote Post
   
Night5h4d3
post Jul 4 2011, 05:57 AM
Post #2


The past tense
Group Icon

Group: +Gold Member
Posts: 1,199
Type: Scripter
RM Skill: Undisclosed




First off, are you using the official legal version of RMXP with no modifications? all 'caps' in the database should be at 999.
Secondly, if you are, then the issue is likely something with scripts, do you have any custom scripts that make changes to Scene Battle?


__________________________
Got 30 minutes? Then you've enough time to play this awesome game:

- potentially promising project page
- thanks holder
My growing space of user-bars:

about me:







I made the following!





Go to the top of the page
 
+Quote Post
   
Atoa
post Jul 4 2011, 11:55 AM
Post #3


Level 11
Group Icon

Group: Revolutionary
Posts: 192
Type: Scripter
RM Skill: Masterful




@Night5h4d3
There is an script made by Woratana that allows to break the database limit event on legal rmxp.

@mast3rshake2049
Many common events will cause lag, since *every frame* it loops throug all common events when updating events. So let's say you have 1000 common events, it will make 40000 cheks on the events every second.

Also, if you're using any custom script, it may be refreshing the message window too often (I.E every frame) wich can cause lag, since the draw text method is quite slow.


__________________________
Go to the top of the page
 
+Quote Post
   
mast3rshake2049
post Jul 4 2011, 02:47 PM
Post #4


Level 3
Group Icon

Group: Member
Posts: 33
Type: Musician
RM Skill: Intermediate




Yes i am using a few custom scrips, however i dont think any of them should affect the text display. (at least not that i know of, i know little to nothing of scripting)

The scrips i am using are

- Night_Runner's Incrementing SP Script.

- Catergorized Items Menu by albertfish

- extra accessori slot mod

- COGWHEEL Plug 'n' Play Menu Bars (based on Syvkal's revisions)

- Solo Player Custom Menu System v0.6 by taiine

I have not modified any of the scene battle scripts so those should be at their defaults.
Thank you again for any advice. And also yes i have the legal version of rpg xp.

This post has been edited by mast3rshake2049: Jul 4 2011, 02:50 PM


__________________________
My youtube music link. *All works are entirely original & were made by me in reason 4.0, Enjoy :)*
http://youtube.com/leonardozuccarelli
Go to the top of the page
 
+Quote Post
   
Atoa
post Jul 4 2011, 03:24 PM
Post #5


Level 11
Group Icon

Group: Revolutionary
Posts: 192
Type: Scripter
RM Skill: Masterful




did you test if the lag occur without the scripts? If you don't have lag without them, they're are to blame, so you should test each script to find the one that's causing the issue.


__________________________
Go to the top of the page
 
+Quote Post
   
mast3rshake2049
post Jul 4 2011, 07:10 PM
Post #6


Level 3
Group Icon

Group: Member
Posts: 33
Type: Musician
RM Skill: Intermediate




QUOTE (Atoa @ Jul 4 2011, 04:24 PM) *
did you test if the lag occur without the scripts? If you don't have lag without them, they're are to blame, so you should test each script to find the one that's causing the issue.



O.....M.....G........i cant believe i didn't do this. and iv worked 3 years at various call centers! I promised my self that this would never happen to me. I broke a blood oath to my self that i would never actually become a customer! Troubleshoot 101 how could i forget. lol

Thank you good sir for your echoes of wisdom smile.gif

EDIT: wouldn't you know it. Turns out to be a prob with COGWHEEL Plug 'n' Play Menu Bars (based on Syvkal's revisions) by DerVVulfman . The battle went smooth as silk without this script. What command/s should i look for to fix this?

P.S. sorry if off topic, but what would be a good place to start learning about scripting in general (for rpg XP) like maybe some youtube vids or a thread in this forum i haven't stumbled across yet? Thank you once again.

This post has been edited by mast3rshake2049: Jul 4 2011, 07:28 PM


__________________________
My youtube music link. *All works are entirely original & were made by me in reason 4.0, Enjoy :)*
http://youtube.com/leonardozuccarelli
Go to the top of the page
 
+Quote Post
   
Atoa
post Jul 4 2011, 10:22 PM
Post #7


Level 11
Group Icon

Group: Revolutionary
Posts: 192
Type: Scripter
RM Skill: Masterful




It's probably something at the def update of Scene_Battle, if the bars are visible during battle probably they're refreshing every frame (clearing and drawing bars every frame + the draw text can be quite laggy)
Post the code, it will be easier to find the culprit x]

Gubid made some ruby tutorial videos: http://www.hbgames.org/forums/viewtopic.php?f=11&t=74398
I haven't watch it, but people say that it's quite good.

This post has been edited by Atoa: Jul 4 2011, 10:23 PM


__________________________
Go to the top of the page
 
+Quote Post
   
Redd
post Jul 5 2011, 08:50 AM
Post #8


:<
Group Icon

Group: Revolutionary
Posts: 2,312
Type: Developer
RM Skill: Advanced




Moving to RGSS Script Support as this now has to do with scripting.


__________________________
Go to the top of the page
 
+Quote Post
   

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 23rd May 2013 - 01:51 AM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker