Change Canvas Image Rendering in the Options

I wanna know if there's a way the image rendering can be changed to pixelated and auto with an option, or if a plugin for that exists, i know there are script calls to do that, and i made some parallel common events but it slightly affect's my game's performance since it has to constantly check whether the switch meant to change the rendering is on. So is there a simple way i can just make it run once?

Original thread: https://forums.rpgmakerweb.com/threads/change-canvas-image-rendering-in-the-options.151708/