Help with battle lag

KeeleTenebrae

Villager
Member
Joined
Jan 31, 2015
Messages
13
Reaction score
3
First Language
Polish
Primarily Uses
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! 
 

LostFonDrive

Veteran
Veteran
Joined
Feb 13, 2015
Messages
173
Reaction score
52
First Language
English
Primarily Uses
On 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.
 

DoubleX

Just a nameless weakling
Veteran
Joined
Jan 2, 2014
Messages
1,787
Reaction score
939
First Language
Chinese
Primarily Uses
N/A
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:

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
P.S.: Again, uptil now, I still just can't understand why an exceptionally proficient scripter like Victor coded this way :)
 
Last edited by a moderator:

KeeleTenebrae

Villager
Member
Joined
Jan 31, 2015
Messages
13
Reaction score
3
First Language
Polish
Primarily Uses
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. 
 

DoubleX

Just a nameless weakling
Veteran
Joined
Jan 2, 2014
Messages
1,787
Reaction score
939
First Language
Chinese
Primarily Uses
N/A
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.
 

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

Latest Threads

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,062
Members
137,575
Latest member
akekaphol101
Top