Lag on Android fix - Caching window colors

Running profilers on the desktop version I found that RPG Maker reads the image that holds the window colors every time it needs a color (for example, while writing each letter of a textbox). "getPixel" is slow. This plugin caches the window text colors into a memory variable the first time each color is read. I personally found this gave my Android version desktop-level performance.

This plugin will probably cause trouble for you if you are changing the window text colors dynamically at run-time using another plugin. I believe this is rare.

Tested against MV version 1.6.1 on a Galaxy S9+. It will probably make iPhones faster, but I haven't tested that.

This plugin is free for commercial or non-commercial use.
Nice one! I will do some tests myself!

Original thread: https://forums.rpgmakerweb.com/threads/lag-on-android-fix-caching-window-colors.116576/