Sorry for my bad english, I got an extreme lag when using YEP_X_MapQuestWindow plugin with my custom timer (Only when I got a mission/quest that is currently progressing)
The FPS is restored when I either erase the timer or by turning off the plugin.
This is my custom timer code:
◆Control Switches:#0027 ChaseTimer Switch = ON
◆If:Script:Math.abs($gameMap.event(this._eventId).x - $gamePlayer.x) + Math.abs($gameMap.event(this._eventId).y - $gamePlayer.y) <= 1
◆Battle Processing:Siluman Air Biru*2
:If Win
◆Script:this.setSpawn(0,0,20);
◆Control Variables:#0023 Timer Chase Air Biru = 0
◆Control Switches:#0027 ChaseTimer Switch = OFF
◆Control Self Switch:B = ON
◆
:If Escape
◆Set Movement Route:This Event (Skip)
: :◇1 Step Backward
: :◇1 Step Backward
: :◇Wait:60 frames
◆Control Variables:#0023 Timer Chase Air Biru = 0
◆Control Switches:#0027 ChaseTimer Switch = OFF
◆Control Self Switch:A = OFF
◆
:End
◆
:Else
◆If:Timer Chase Air Biru = 3
◆Control Variables:#0023 Timer Chase Air Biru = 0
◆Control Switches:#0027 ChaseTimer Switch = OFF
◆Control Self Switch:A = OFF
◆
:End
◆
:End
And this is my common event:
Also this is my current plugin:
The FPS is restored when I either erase the timer or by turning off the plugin.
This is my custom timer code:
◆Control Switches:#0027 ChaseTimer Switch = ON
◆If:Script:Math.abs($gameMap.event(this._eventId).x - $gamePlayer.x) + Math.abs($gameMap.event(this._eventId).y - $gamePlayer.y) <= 1
◆Battle Processing:Siluman Air Biru*2
:If Win
◆Script:this.setSpawn(0,0,20);
◆Control Variables:#0023 Timer Chase Air Biru = 0
◆Control Switches:#0027 ChaseTimer Switch = OFF
◆Control Self Switch:B = ON
◆
:If Escape
◆Set Movement Route:This Event (Skip)
: :◇1 Step Backward
: :◇1 Step Backward
: :◇Wait:60 frames
◆Control Variables:#0023 Timer Chase Air Biru = 0
◆Control Switches:#0027 ChaseTimer Switch = OFF
◆Control Self Switch:A = OFF
◆
:End
◆
:Else
◆If:Timer Chase Air Biru = 3
◆Control Variables:#0023 Timer Chase Air Biru = 0
◆Control Switches:#0027 ChaseTimer Switch = OFF
◆Control Self Switch:A = OFF
◆
:End
◆
:End
And this is my common event:
Also this is my current plugin: