Yanfly Battle Engine Core Lag

zerobeat032

Cloaked Wanderer...
Veteran
Joined
Mar 28, 2014
Messages
299
Reaction score
336
First Language
English
Primarily Uses
RMMV
I figured to post this maybe here since this isn't technically a bug or anything...? Forgive me if I'm wrong on that. I've noticed even in an empty project with just the Core Engine and Battle Engine on, I get a decent amount of lag. Now obviously, I questioned my laptop in general. But with the Battle Engine off, I don't get anywhere near as much lag. I'd like to keep the Battle Engine for the action sequences (I don't use sprites, but the commands within them are still very useful for things like adding variables, etc...) and the health bars (they're the only ones that get an accurate reading regardless of if the enemy has different HP from it's database default.)


If anyone else has experienced more lag with the Battle Engine, than without I'm curious. Also if there is any solution... Oh and even with Yanfly's FPS Option Plugin set to true, the lag is still there.
 

Twisted Crow

Villager
Member
Joined
May 16, 2016
Messages
24
Reaction score
8
First Language
English
Primarily Uses
RMMV
I am not sure if my issue is the same or not... but I'm just going to take a shot in the dark on this one.

On booting the game and starting the first encounter, do you get a "stuttering effect" with the battle scene start up? And then maybe a similar effect with the first enemy attack and sound effect? I am not sure if your issue is identical to mine but I'm assuming your plugins are up to date from http://yanfly.moe/yep/ ?


Weird thing being about my situation is... the 1.35b Battle Core plugin works just fine on my old projects, but ever since I tried to migrate the same data to a new project (to get the new Save Core plugin to work)... I noticed this odd lag for me on new projects. Yet, the same plug-ins, same order and everything work still perfectly on the old project.


Just double-checking but... are these "symptoms" of lag similar or am I way off? :)

-TC
 

zerobeat032

Cloaked Wanderer...
Veteran
Joined
Mar 28, 2014
Messages
299
Reaction score
336
First Language
English
Primarily Uses
RMMV
I am not sure if my issue is the same or not... but I'm just going to take a shot in the dark on this one.

On booting the game and starting the first encounter, do you get a "stuttering effect" with the battle scene start up? And then maybe a similar effect with the first enemy attack and sound effect? I am not sure if your issue is identical to mine but I'm assuming your plugins are up to date from http://yanfly.moe/yep/ ?


Weird thing being about my situation is... the 1.35b Battle Core plugin works just fine on my old projects, but ever since I tried to migrate the same data to a new project (to get the new Save Core plugin to work)... I noticed this odd lag for me on new projects. Yet, the same plug-ins, same order and everything work still perfectly on the old project.


Just double-checking but... are these "symptoms" of lag similar or am I way off? :)

-TC
Hmm... well I've had that issue, in the past that is. What I've noticed now is with an empty project, everything zooms without certain Yanfly stuff. In my case, turing off Animated SV Enemies helped. As for your issue. I haven't had that problem lately. BUT, I've also upgraded the ram on my laptop... if that's making a difference that is. Maybe in your case make a brand new empty project and take your plugins over to it. Mess around with 'em and see if that makes a difference. If you're still having problems like with the new project, maybe something is messing with something now?


I am still however experiencing some lag. But as I said, turning off the Animated stuff helped somewhat. Lastly, do you have any plugin's that might conflict with Yanfly's to cause this? Other than the Save Core, have you added anything else new to your project that wasn't in the old?
 

ramza

Lunatic Coder
Veteran
Joined
Jan 28, 2013
Messages
776
Reaction score
487
First Language
English
Primarily Uses
RMMV
I think this issue might be related to the fluidtimestep fix that was implemented in RMMV 1.10.


Prior to 1.10 the game would slow down the framerate to keep things looking smooth. After this fix, the game drops frames instead, causing the visuals to get choppy or jumpy.


I think this is also related to a preloading issue. The first time a sound, or music, or animation is cached, it'll cause the aforementioned slowdown. This happens on my computer as well, and I have 16gb of RAM and a GTX980. You could solve this by using the preload manager plugin.


TDDM Preload Manager


Keep in mind that the preload manager will cause significant load times on slower machines. And might cause mobile platforms to to work at all.
 

zerobeat032

Cloaked Wanderer...
Veteran
Joined
Mar 28, 2014
Messages
299
Reaction score
336
First Language
English
Primarily Uses
RMMV
I actually have that plugin lol. Like I said though, turning off the animated battlers helped somewhat. I tried an empty project and a lot of the lag came from that plugin. I've had less lag afterwards. The only weird note now is the CTB causing lag when transitioning to the victory screen. So, I'm wondering now if it's my computer which now has 8 gigs of ram. 
 

beenbaba

Slowly getting there
Veteran
Joined
Apr 28, 2015
Messages
289
Reaction score
159
First Language
English
What are your computer specs? In battle, are there specific actions that cause the battle to lag? Like playing an animation, selecting things from the menu etc. A video showing the lag would be helpful.


Have you also checked with task manager your processor and ram usage whilst running the game? Does the lag differ from a test battle in the database to an actual battle whilst running the game?
 

zerobeat032

Cloaked Wanderer...
Veteran
Joined
Mar 28, 2014
Messages
299
Reaction score
336
First Language
English
Primarily Uses
RMMV
What are your computer specs? In battle, are there specific actions that cause the battle to lag? Like playing an animation, selecting things from the menu etc. A video showing the lag would be helpful.


Have you also checked with task manager your processor and ram usage whilst running the game? Does the lag differ from a test battle in the database to an actual battle whilst running the game?


Well, other than I know I just installed 8 gigs of ram, I'm not too sure about the rest of the specs...


I did find this though, Intel(R) Celeron (R) CPU N2840 @2.16 Ghz... does that help at all?


As for the lag, the BIGGEST source of grief is playing an animation. it's super slow. The menu isn't too bad and even mouse over selecting isn't a major gripe. I can make a video of the lag, but the issue is with more lag being produced by the video recorder. When the Battle Engine Core isn't on and i have my battle plugins as follows... 


plugins.PNG


the lag is soooo minimal. As one might notice, I'm running everything in front view (as to use Portraits/Bust of my own art), so it's not even like action sequences were an issue of note. I tested this setup up RIGHT after running one with the Battle Engine Core and the difference was REALLY noticable. But it REALLY is just the animations show. They creep out, but only with the Battle engine on... I'm not sure why exactly. 


Also, as for the strain on the computer, I've see no difference between test battles and game ones. I can post those numbers for that too after i set the battle engine core back up. Honestly, if i could get the lag off of animation (without that FPS sync thing cause then they're choppy), I'd absolutely be fine here.
 

zerobeat032

Cloaked Wanderer...
Veteran
Joined
Mar 28, 2014
Messages
299
Reaction score
336
First Language
English
Primarily Uses
RMMV
https://youtu.be/27A6QlOdLMI...  here's a video of what's happening. this is with the battle engine core on and the animated sv enemies off. when I turn off Yanfly's battle engine, this moves significantly faster... I don't know what the deal is. 
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA
You have an ATB plug-in that isn't from Yanfly. Have you tried disabling that one and seeing if the lag goes away? Plug-in's from different authors don't always play nice, so that could be the cause too.
 

zerobeat032

Cloaked Wanderer...
Veteran
Joined
Mar 28, 2014
Messages
299
Reaction score
336
First Language
English
Primarily Uses
RMMV
You have an ATB plug-in that isn't from Yanfly. Have you tried disabling that one and seeing if the lag goes away? Plug-in's from different authors don't always play nice, so that could be the cause too.
actually that is Yanfly's atb. the only thing different is the look of the gauges. and that's not the source of the lag. when i turn off the battle engine, and use a different atb (cause I have to), it's still faster. I'm at a point now where I'm wondering if this is only happening to me. 
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA
From what I can see, your plug-ins are in a really bad order. Also, you have many plug-ins not by Yanfly, which could be the conflict. If you turn off ALL non-Yanfly plug-ins, does the problem go away? If so that means the lag is one of the non-Yanfly Plug-ins and the Battle Engine Core are not working well together, causing the lag.


PS: I tried to view your video, it says it is set to private and cannot be viewed.
 
Last edited by a moderator:

zerobeat032

Cloaked Wanderer...
Veteran
Joined
Mar 28, 2014
Messages
299
Reaction score
336
First Language
English
Primarily Uses
RMMV
From what I can see, your plug-ins are in a really bad order. Also, you have many plug-ins not by Yanfly, which could be the conflict. If you turn off ALL non-Yanfly plug-ins, does the problem go away? If so that means the lag is one of the non-Yanfly Plug-ins and the Battle Engine Core are not working well together, causing the lag.


PS: I tried to view your video, it says it is set to private and cannot be viewed.
the video isn't private anymore lol... oops. as for the list, it's in the order Yanfly put them in on the site... which I thought was recommended. I'm noticing less lag in an empty project. so I'm not sure... I'll go plugin by plugin to see 
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA
Took a watch, yep, that's slow. Couldn't see any obvious cause though with an immediate inspection, though if I had to venture a guess it is something is taking too long to draw. Maybe look at all plug-ins that affect visual things in the battle (like gauges, or damage pop-ups and such)?


As for the order, I was referring to the non-Yanfly plug-ins, as where you had the VE plug-ins (Victor Saint's) seemed odd to me. Plus, I seem to recall that VE and YEP plug-ins have a history of not playing nice (at least they did in ACE). That might be where you need to look (and where I'd look first).
 
Last edited by a moderator:

zerobeat032

Cloaked Wanderer...
Veteran
Joined
Mar 28, 2014
Messages
299
Reaction score
336
First Language
English
Primarily Uses
RMMV
Took a watch, yep, that's slow. Couldn't see any obvious cause though with an immediate inspection, though if I had to venture a guess it is something is taking too long to draw. Maybe look at all plug-ins that affect visual things in the battle (like gauges, or damage pop-ups and such)?


As for the order, I was referring to the non-Yanfly plug-ins, as where you had the VE plug-ins (Victor Saint's) seemed odd to me. Plus, I seem to recall that VE and YEP plug-ins have a history of not playing nice (at least they did in ACE). That might be where you need to look (and where I'd look first).
yeah,  I'll definitely look at it. as far as I've seen, the biggest issue has been the animation lag. but I'm looking into each plugin now
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA
For animations, under the plug-in settings for Battle Core, try these settings:


Animation base delay: 0


Animation next delay: 0


Motion waiting: false


I have it set to those and I have 0 lag (though I also have only 1 plug-in that isn't from Yanfly in the project, hence why I wonder if it is a conflict between a Yanfly plug in and a non-Yanfly plug-in). If that doesn't do it, try turning show shadows to false, as shadows take a long time to draw.


If still no luck, under Yanfly Engine Core there is a setting for animation rate, try lowering that number and seeing if it helps. Default is 4.


Maybe those will help to speed things up for you?
 

zerobeat032

Cloaked Wanderer...
Veteran
Joined
Mar 28, 2014
Messages
299
Reaction score
336
First Language
English
Primarily Uses
RMMV
For animations, under the plug-in settings for Battle Core, try these settings:


Animation base delay: 0


Animation next delay: 0


Motion waiting: false


I have it set to those and I have 0 lag (though I also have only 1 plug-in that isn't from Yanfly in the project, hence why I wonder if it is a conflict between a Yanfly plug in and a non-Yanfly plug-in). If that doesn't do it, try turning show shadows to false, as shadows take a long time to draw.


If still no luck, under Yanfly Engine Core there is a setting for animation rate, try lowering that number and seeing if it helps. Default is 4.


Maybe those will help to speed things up for you?
crap, i totally posted the wrong list of plugins... that list is the one for when i was testing out NON-Yanfly stuff and getting way less lag. as for the lag tho, even an empty project was causing some. I'm just gonna assume my laptop sucks or something lol. I can't pin down an exact issue, even after looking over all my plugins. I'm not really sure what to do at the moment other than going without it. I have a video without the battle engine and the only lag is from the actual recording itself. I have ZERO ideas as to why I'm experiencing such issues... 


I also tried changing things... there was nothing to change as everything you listed was already set that way at default lol. I'll try to figure this out, but I might have to not use the Battle Engine... or at least test this on a different computer/laptop... I figured 8 gigs of ram would solve this, but I guess not.
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA
It might be the laptop yes. My last laptop couldn't run Xcom without lag for some reason, but it ran everything else I threw at it. Sometimes, systems are just weird.


Though, have you had anyone else test the project and see if it lags for them? That would be one way to see if it is just your comp or something else.
 

zerobeat032

Cloaked Wanderer...
Veteran
Joined
Mar 28, 2014
Messages
299
Reaction score
336
First Language
English
Primarily Uses
RMMV
hmm, I didn't think of that actually. I am curious to see if it's my laptop. I suppose I'll see about getting this to someone else and seeing what's up. good suggestion.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,867
Messages
1,017,061
Members
137,575
Latest member
akekaphol101
Top