- Joined
- Jan 5, 2016
- Messages
- 149
- Reaction score
- 88
- First Language
- English
- Primarily Uses
- RMVXA
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:
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!
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!
