Hi! I've been using a lot of the Yanfly plugins and other plugins for a long time now and don't have any lag issue, the second I added YEP equip core to add custom weapon and armor parameter formulas, the battles are unbearably laggy and when I remove this plugin the lag stops! Is there a way to fix this or is there another plugin that adds custom weapon and armor parameters that does not cause lag? Thanks!
Equip Core and Lag
RPG Maker MV SupportI'm going to suggest something is wrong in your setup - there's no reason the Equip Core should cause any lag. It does absolutely nothing to my project I use it in, and I've never heard anyone ask about this before.
Are you putting it in the correct place related to other Yanfly plugins? Does it do this in a blank project with just Equip Core? What custom formulae are you adding?
Are you putting it in the correct place related to other Yanfly plugins? Does it do this in a blank project with just Equip Core? What custom formulae are you adding?
Okay I have tried it in a empty project and it doesn't seem to lag, so now what I have done is I am back in the main project, and it only seems to lag if I have any of the weapons/armors equipped!
My custom parameters have to be causing the issue, but all I really did was copy the Mejai's soul stealer from here http://www.yanfly.moe/wiki/Mejai's_Soulstealer_(MV_Plugin_Tips_&_Tricks)
and switched the agility for mdf in the formula!
Can you post a screenshot to make sure? Do you have the Battle Statistic plugin installed and in the correct order?
If you remove that one notetag, does the plugin still cause lag?
If you remove that one notetag, does the plugin still cause lag?
Of course I can! 🙂
Here is the scripture with pretty much the same formula as the soulstealer, I changed agi to mdf and the parameter number to 6 (started at 0)
I do have battle statistics, is it supposed to go above or below Equip Core, I think I have it below, as I followed the YEP order to a T when I first bought the plugins.
Is it possibly as simple as not putting 0.10, where I accidentally put .10?? I fixed that typo and it seems to be fine but im going to keep running tests! EDIT: it's less laggy but still noticeable.
Here is the scripture with pretty much the same formula as the soulstealer, I changed agi to mdf and the parameter number to 6 (started at 0)
I do have battle statistics, is it supposed to go above or below Equip Core, I think I have it below, as I followed the YEP order to a T when I first bought the plugins.
Is it possibly as simple as not putting 0.10, where I accidentally put .10?? I fixed that typo and it seems to be fine but im going to keep running tests! EDIT: it's less laggy but still noticeable.
No, there's no difference between 0.1 and .1 or .10 or whatever.
Yeah I am unsure why it won't work but the other weapons with 1 line codes work so I will just avoid using that complicated note tag! Thanks!
Have you confirmed that it's actually producing the correct parameter values?
You could check out the console: press F8 during playtest and select the Console tab. Error messages will show up there in red text. Not sure if console error spam could cause frame drops when the console isn't actually open, but it's still worth a look. 👋
user.parameter(6) looks incorrect to me...the core script method is user.param(6), or user.agi for short. [Edit: yeah, I just checked and the example uses paramBase, i.e. the value before plus/traits/buffs, not parameter.] I'd consider this instead: mdf = user.agi * 0.1;You could check out the console: press F8 during playtest and select the Console tab. Error messages will show up there in red text. Not sure if console error spam could cause frame drops when the console isn't actually open, but it's still worth a look. 👋
YEP tags are typically evals, which are compiled on-demand each time. Chunky evals that may be recalculated multiple times per frame can have a notable impact on framerate. Unfortunately conversion from eval to "compile once" functions generally has to be done on a per-case basis.
Framerate alone is not a good performance metric. E.g. let's say your system could run your game at 120 fps, but doesn't because it only needs to hit 60. If you add some new, demanding feature then the effective frame cap might fall from 120 to 90...but you won't see a difference on your system, because 90 is still more than 60. Particularly for something complex like a game, framerate is affected by many different factors, including other applications.
Framerate alone is not a good performance metric. E.g. let's say your system could run your game at 120 fps, but doesn't because it only needs to hit 60. If you add some new, demanding feature then the effective frame cap might fall from 120 to 90...but you won't see a difference on your system, because 90 is still more than 60. Particularly for something complex like a game, framerate is affected by many different factors, including other applications.
Thank you so much, I didnt realize the f8 screen would tell you if errors are happening despite the error screen not popping up! It helped me decipher all of my issues very quickly! 🙂
Thread closed
(yes, you did it right 😉 )
(yes, you did it right 😉 )
Original thread: https://forums.rpgmakerweb.com/threads/equip-core-and-lag.155393/