RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Terrible lag in my Job System

0 Members and 1 Guest are viewing this topic.

*
Rise From The Ashes!
Rep:
Level 91
"Time to bring the Law!"
Project of the Month winner for September 2009
Yeah, I hit another snag. :tpg:

It seems like after changing job, a lot of lag starts to form in the job menu, moving in it becomes sluggish and message boxes appear very slowly. The only reason I can actually think of that could be actually causing this, is the actual events that are being used for the system. ;9

My system DOES continuously load the pictures (about 6-7 pictures) over and over again due to there being no end for the Parallel Processing events, so I think that could be the issue. But if it is, how could I get the events to stop looping?

If you need anymore detail about the system, I will happily do it.
« Last Edit: March 08, 2009, 08:47:29 PM by Tezuka »

********
Furry Philosopher
Rep:
Level 94
Rawr?
2013 Best RPG Maker User (Creativity)Gold - GIAW 11 (Hard)Randomizer - GIAW 11Secret Santa 2013 ParticipantFor frequently finding and reporting spam and spam bots2012 Best RPG Maker User (Mapping)2012 Best RPG Maker User (Programming)Secret Santa 2012 ParticipantGold - GIAW 9Project of the Month winner for September 2008For taking a crack at the RMRK Wiki2011 Best RPG Maker User (Programming)2011 Best Veteran2011 Kindest Member2010 Best RPG Maker User (Story)2010 Best RPG Maker User (Technical)
I'm not too used to using 2K3, but have you tried using End Event Processing or Erase Event?




*
Rise From The Ashes!
Rep:
Level 91
"Time to bring the Law!"
Project of the Month winner for September 2009
I've tried End Event Processing, but I still get the strange lag. I also don't want to Erase the Event as it needs to stay there for the system to work.

Thanks for the help though. :)

*
Rep:
Level 85
Real Men Make Fan Games
Project of the Month winner for May 2009
The pictures being shown over and over is your issue; rm2k/3 cannot handle it.  Instead of a parallel process checking and putting up pictures continuously, you'll want to change that to checking and putting up pictures when something changes (i.e. when the cursor moves, when the player selects something, stuff like that).  I can't go into more detail unless I saw the code for your system, but that's the gist of it.




*
Rise From The Ashes!
Rep:
Level 91
"Time to bring the Law!"
Project of the Month winner for September 2009
Sorry for the late reply, I became inactive for a while.

Anyway, here is how it works:

The Parallel Process is checking the base level, job level, current AP and job of the character, but because it is a parallel process it continues to do it over and over again with any break in the loop. I can't do it by when the cursor moves as it still would be a parallel process so it would just lag after switching on that process. Yes, with it being triggered by a cursor movement means I can just switch off the process after it has done what needs to be done, but I wouldn't be able to do this as after it being switched off, the pictures would surely disappear along with the event (which would now be switched off).

That's basically the system in nutshell along with your idea using a manual trigger.

Thanks for the idea, but sadly it wouldn't work. :)

*
Rep:
Level 97
2014 Most Unsung Member2014 Best RPG Maker User - Engine2013 Best RPG Maker User (Scripting)2012 Best Member2012 Best RPG Maker User (Scripting)2012 Favorite Staff Member2012 Most Mature MemberSecret Santa 2012 ParticipantProject of the Month winner for July 20092011 Best Veteran2011 Favourite Staff Member2011 Most Mature Member2011 Best RPG Maker User (Scripting)2011 Best Use of Avatar and Signature Space2010 Best RPG Maker User (Scripting)2010 Best Use Of Avatar And Signature Space
So you're not reshowing the pictures every frame? A few conditional branches shouldn't be causing lag. Also, the pictures won't disappear until you erase them if it's anything like XP or VX.

The first thing I would suggest is that you put some wait frames, maybe just 1 or 2. Though actually, 2k3 judges wait by seconds, so that wouldn't work... hmmm.

If you wouldn't mind sending me the system, I'd be happy to take a look and see if there is any way I could see to reduce the lag.

*
Rep:
Level 85
Real Men Make Fan Games
Project of the Month winner for May 2009
I beg to differ :)

Try something like this:

Code: [Select]
:loop
     :Call Event [Base Level Sort]
     :Call Event [Job Level Sort]
     :Call Event [Current AP Sort]
     :Key Input Processing
     :{rest of code}
:end loop

Each of those events mentioned in the code above are just Action Key triggered events either separate on the map or different pages in your parallel process, doesn't matter.  What this code does is find out/display those statistics right off the bat, waits until the player presses the key, and then does it again.  This is a common tactic used by many a custom menu and I think you should find that it works lag-free.

Good luck ^_^




****
Rep:
Level 84
Is a New Zealander
Could you not make it only do it every time a new map is loaded? I'd assume ending a battle would count too?
I'm much too lazy to put an actual signature here.

*
Rise From The Ashes!
Rep:
Level 91
"Time to bring the Law!"
Project of the Month winner for September 2009
I beg to differ :)

Try something like this:

Code: [Select]
:loop
     :Call Event [Base Level Sort]
     :Call Event [Job Level Sort]
     :Call Event [Current AP Sort]
     :Key Input Processing
     :{rest of code}
:end loop

Each of those events mentioned in the code above are just Action Key triggered events either separate on the map or different pages in your parallel process, doesn't matter.  What this code does is find out/display those statistics right off the bat, waits until the player presses the key, and then does it again.  This is a common tactic used by many a custom menu and I think you should find that it works lag-free.

Good luck ^_^

Would you mind going into a bit more detail? I don't see how the loop and Key Input Processing would allow it to do what you said it should. Sorry if it seems silly, but I just need to understand why this would work.

pokeball KioOfflineMale
**
Rep: +0/-0Level 82
I'm not going to pretend to know what you are doing but mabye you should stick with a more basic
system? like the one showed here(except mabye minus the lvl reset).
http://rmt.divinelegy.com/tutorials/intermediate/jobs.html

***
Rep:
Level 86
Sonic Dog -> Light Spear -> Overlimit -> Slash
Gravedug.

Thanks for being helpful, but do take a look at the big red message that tells you not to post in an old topic. After 6 months, a lot can change (And I'm pretty sure Tez got that working properly).