I checked it through and it works fine with me. But I noticed a lag that occurs every second and foudn the reason for it. It's the HUD. It gets refreshed every second which is a waste of CPU time. Add this code to the end of your ABS to remove that lagging:
class Window_Mapstats < Window_Base
def refresh
self.contents.clear
actor = $game_party.actors[$ABS.active_actor]
draw_actor_graphic(actor, 10, 45) # draws the actor graphic
draw_actor_name(actor, 30, -5) #draws the actors name
draw_actor_level(actor, 30, 15) #draws the actor level
draw_actor_hp_text(actor, 110, -5) #draws the actors hp
draw_actor_hp_bar(actor, 260, 5) #draws the actors hp bar
draw_actor_sp_text(actor,110, 15) #draws the actors sp
draw_actor_sp_bar(actor, 260, 27) #draws the actors sp bar
draw_dash_bar(375, 27) #draws the dash level bar
@char_name = actor.character_name
@name = actor.name
@level = actor.level
@hp = actor.hp
@sp = actor.sp
@dash = $ABS.dash_level
self.contents.draw_text(377, -5, 120, 32, "Dash")
end
def update
refresh if test_stats
end
def test_stats
actor = $game_party.actors[$ABS.active_actor]
return (@char_name != actor.character_name or @name != actor.name or
@level != actor.level or @hp != actor.hp or @sp != actor.sp or
@dash != $ABS.dash_level)
end
end
You could also just replace the methods I rewrote with the actual ones you are using. Other than that, your best chance is an Anti-Lag. It didn't lag with me after I used this instead of the original one.