Hello all. I want to know if there is anyway to reduce the lag during battles. I am using victors battle scripts, specifically Animated battle, Battlers, and ATB, and after much editing, the lag is still there. I have managed to reduce the lag slightly, but not enough to get rid of it. I am using a lot of custom scripts, but I know that none of them are causing this lag because I created a dummy project with victors battle scripts alone and they deliver the same amount of lag as in my current project. The lag only gets bad when there are multiple sprites in the battle, both actors and enemies. My PC specs aren't the best so I am hoping that it is my computer that is making the game lag and not the project itself. I would gladly appreciate it if anyone could help me with this issue. Thanks!
Help with battle lag
RGSSx Script SupportOn one hand, even a fairly weak computer probably shouldn't cause much problems here, but on the other I can't see any other reason, there really shouldn't be any battle lag at all unless you're doing something crazy with your battle system which you aren't.
Your problems recalled my memory about this one:
http://forums.rpgmakerweb.com/index.php?/topic/31145-help-problems-with-victor-engine-atb-script/
If if VE_ATB_TURN_COUNT is set as :battlers in your case, then the below snippet might work for you:
P.S.: Again, uptil now, I still just can't understand why an exceptionally proficient scripter like Victor coded this way 🙂
http://forums.rpgmakerweb.com/index.php?/topic/31145-help-problems-with-victor-engine-atb-script/
If if VE_ATB_TURN_COUNT is set as :battlers in your case, then the below snippet might work for you:
module BattleManager #----------------------------------------------------------------------------| # Rewrite method: self.setup_atb_turn_speed | #----------------------------------------------------------------------------| def self.setup_atb_turn_speed case VE_ATB_TURN_COUNT # This part is rewritten by this snippet to fix :battlers issue when :battlers then all_alive_members.size # when :actions then VE_ATB_ACTION_COUNT when :time then VE_ATB_TIME_COUNT end end # self.setup_atb_turn_speed #----------------------------------------------------------------------------| # New method: self.all_alive_members | #----------------------------------------------------------------------------| def self.all_alive_members $game_party.alive_members + $game_troop.alive_members end # self.all_alive_membersend # BattleManager
That is awesome! Thank you so much! I tested this out and the lag has been lowered significantly. However some lag still persists, but it is generally playable without the frustration of it being entirely slow. I pasted the snippet as it's own script underneath all of my other scripts. Should I keep it there or add it somewhere else? Perhaps the placement will make the difference I'm looking for.
It should be just below Victor's ATB.
Original thread: https://forums.rpgmakerweb.com/threads/help-with-battle-lag.38949/