Jun 30, 2017
Reaction score
First Language
Primarily Uses
Hi, I'am trying to implement my own custom menus and now scripting some windows. After looking at some examples and tutorials what i do is create a Game_Window instance, and play with .update() to refresh my window.

My_Window.prototype.update = function() {;
      this.drawText('test', 200,200,200);

I noticed that this recreates all the conents inside the window, but some tutorials suggests to do that.
Additionally, because i need to put some decorative images, used this funcion to draw images inside the window:

Window_Base.prototype.drawPicture = function(pictureName, x, y) {
                var bitmap = ImageManager.loadPicture(pictureName);
                var pw = bitmap.width;
                var ph = bitmap.height;
                var sx = 0;
                var sy = 0;
                this.contents.blt(bitmap, sx, sy, pw, ph, x, y);

That works, but after some time with the menu open, the game starts to slow down, soon becomes irresponsive, and FPS
drops to 10.. 5... 1... freezed.

I dont know where exactly is the problem, maybe the drawPicture its not well implemented, or maybe drawing the full window every time its not the whay to go. In case the problem is the last one, how i can update parts of the window without calling contents.clear()+redraw every time?

I dont want to redraw the window only when some key is pressed because there are some decorative moving images on the menu.

Any help will be apreciated.

Latest Threads

Latest Profile Posts

I'm listening to iiluminaughtii talking about the secrets behind shady businesses and scams. Meanwhile I'm writing a fanfic about Sephiroth from FF7, one specifically for my stepmom. I'll get to give it to her, too, because my boss said I could take the holidays off! Dec. 22-27 I will be in Orlando, and maybe Fort Myers too, visiting my dad and stepmom!
Of course, I bought a handful of games on the Steam Black Friday sale. Will I try them? Will I complete any? Who knows...
I don't really have any neat updates today about how I screwed up programming... But if you want to observe the intensenes of me programming, then you can check out my stream :)
New Weapons.gif
No more spam from me today, I promise! Just wanted to upload this, people have been giving me feedback that my weapon sprites (which were RTP) clashed badly with my battlers for ages, so today I finally took the plunge and updated them! Really happy with how they came out :D :D
So Facebook fraudulently took money from me. They even went through my PayPal accounts to find a card that had the money on it. Thinking about deleting my Facebook account because this doesn't happen on twitter, not even close.

Forum statistics

Latest member