Best way to avoid redrawing text during Scene updates?

This may seem like a dumb question, but I haven't yet found a good solution for this problem. I'll start off with a screencap here:
bnCM7Kf.png

Essentially I've created a pretty detailed stat window on the right using a large series of draw_text methods in a custom Window_Base child class. In Scene_Skill's update_basic, I made sure to update the detail window to match @item_window.item. Simple.

Now the big issue is that this is a metric s**t ton of text to draw. So much so that it's causing noticeable lag when the Scene is up. Preferably, I'd like this window to update only when the @item_window index is altered, but this has become very difficult to do efficiently. There's also the issue that the detail window needs to show and hide when the @command_window opens/closes. I'll try to keep this simple; I just need a way to avoid redrawing all this text every single frame.

I figure this isn't the first time someone has run into this issue so I hope there's a straightforward answer I'm just overlooking. If anyone needs more details on this Window class, feel free to ask and I'll try to be as detailed as possible. Thanks in advance!
You see, you could try to look at the default script example on updating the window help. Like, why don't you ask the window help didn't get redrawn every single frame, but only change when you select a different item?

The method is located in call_update_help and update_help methods in any window that inherited from Window_Selectable, that means including Window_ItemList. If that is what you're looking for. What you need to do is to insert another window that behaves like help window.
One way is to make a new instance variable called index_old for the item window, on the update method of your scene, only update the text window if the item window's index != index_old... Then alias the select method (or child overwrite it if your command window didnt overwrite it from the parent) and set index_old to be equal to the new index.

Or you could also go Theo's route and only update the text window when the item window's select method is triggered...

You can also view the default scripts related to Scene_Skill since afaik, the default system only updates the skill list window when you're changing categories (skill types)

Original thread: https://forums.rpgmakerweb.com/threads/best-way-to-avoid-redrawing-text-during-scene-updates.110674/