- Joined
- May 15, 2012
- Messages
- 14,682
- Reaction score
- 3,003
- First Language
- Tagalog
- Primarily Uses
- RMVXA
I have a curious question here, see this code
So this runs, every frame without really having any visible slowdown,
Now if I do this
I simply added a console.log call in there and now it slowdowns to a super slow mode like it takes 3+ seconds before my cursor moves when I press an arrow key.
So I was just curious if console.log really does use that much power
Code:
Window_BattleStatus.prototype.drawActorAtb = function(actor, x, y, width) {
width = width || 186;
var color1 = this.hpGaugeColor1();
var color2 = this.hpGaugeColor2();
this.drawGauge(x, y, width, actor.atbRate(), color1, color2);
this.changeTextColor(this.systemColor());
this.drawText("ATB", x, y, 44);
};
Now if I do this
Code:
Window_BattleStatus.prototype.drawActorAtb = function(actor, x, y, width) {
Console.log("Text here");
width = width || 186;
var color1 = this.hpGaugeColor1();
var color2 = this.hpGaugeColor2();
this.drawGauge(x, y, width, actor.atbRate(), color1, color2);
this.changeTextColor(this.systemColor());
this.drawText("ATB", x, y, 44);
};
So I was just curious if console.log really does use that much power
