I've noticed an odd lag that happens with Galv's New Item Indication. The more items you have in your inventory, especially during battle, the game chugs when you hover over them. After some time I realized what the problem was:
It's this piece of code. From what I understand it's refreshing through every item to get rid of the "new" indicator immediately, and the more items there are the longer it takes.
I've rooted out that this is not a script conflict problem, as removing this little bit gets rid of the lag... but the "new" indications only vanish when you back out of the item window. This also happens in the fresh demo Galv himself provides that otherwise only has this script on it.
Is it possible to revamp the refresh method so it removes the new indicator from items individually instead of scanning through the entire item window?
Ruby:
SceneManager.scene.refresh_new
class Scene_Base
def refresh_new
@item_window.refresh if @item_window
end
It's this piece of code. From what I understand it's refreshing through every item to get rid of the "new" indicator immediately, and the more items there are the longer it takes.
I've rooted out that this is not a script conflict problem, as removing this little bit gets rid of the lag... but the "new" indications only vanish when you back out of the item window. This also happens in the fresh demo Galv himself provides that otherwise only has this script on it.
Is it possible to revamp the refresh method so it removes the new indicator from items individually instead of scanning through the entire item window?