$gameScreen.movePicture causes entire screen to flash briefly

Hello, I just started using MZ and I'm really liking it! I used Unity for my last project, and wanted to try an RPG instead of what I did previously.

My current issue comes from this: I want to have a lot of things you can interact with, which will show a zoomed in picture in the background, and then display some text.
1761061754658.png


Now, I wanted to make this easier since I would be doing it a bunch, so I made a script to basically take an image, fade it in, and also fade in a full black background, sort of like a fade out the screen thing, so just this image is showing up. I did this with the black background because I dont necessarily want every image I render in 3d to have to fill the entire screen.

However, and this is very weird to me, the screen flickers when fading in. And when I say screen, I mean the entire monitor, not just the window the game is constrained to. It flickers only near the end of the fade, and its a whitish almost flash.

Here is the code I used for this:

JavaScript:
PluginManager.registerCommand(pluginName, "fadeOutAndShowImage", function (args) {

        //wipe any old pictures
        $gameScreen.erasePicture(defaultVoidPictureId);
        $gameScreen.erasePicture(defaultExaminePictureId);

        //show the void, at 0% opacity
        $gameScreen.showPicture(defaultVoidPictureId, 'void', 0, 0, 0, 100, 100, 0, 0);
        //show the image requested at 0% opacity
        $gameScreen.showPicture(defaultExaminePictureId, args['image'], 0, 0, 0, 100, 100, 0, 0);

        args['frames'] = parseInt(args['frames']);

        //fade in over time
        $gameScreen.movePicture(defaultVoidPictureId, 0, 0, 0, 100, 100, 255, 0, args['frames']);
        $gameScreen.movePicture(defaultExaminePictureId, 0, 0, 0, 100, 100, 255, 0, args['frames']);
        this.wait(args['frames']);

        //wait for entry
        this.setWaitMode('message');
    });


Any idea why this might be happening?
can you show us the event that is calling this command as well?

It might be something entirely different.
If you go to a new map, the map's parallel process events are processed first, before any autorun event. So if you use an autorun to show a picture (or fade to black or whatever), then the map is still visible for about half a second - the time the parallel processes are handled and before the autorun can hide the map itself.

Or it might simply be loading delay - a picture has to be completely loaded before it can be displayed. The event commands themselves handle that in the background, but if you're using the script equivalents to those commands then you are responsible for checking if the file is already available.
Thanks for the reply! I have no idea why this is the case, but I actually changed the monitor I ran my game on and it worked! So I think that my dogwater monitor may have had something to do with it. Thank you though!

Original thread: https://forums.rpgmakerweb.com/threads/gamescreen-movepicture-causes-entire-screen-to-flash-briefly.180649/