Parallel Event showing an image, how does it really work?

If I have a parallel event running that is only showing a picture with the show picture command, is it just constantly showing that picture every tick, or does it already see its showing a picture and just "skip over it".
Really what I want to know is does it effect the performance at all.
I have tested it of course and everything runs fine with no skips/drops or anything, but in a more developed game with more processes happening and just for clean development sake, is it fine to do or a bad idea?
It would keep running the process to show the picture over and over again.
It doesn't skip over it. Your parallel event is going to constantly cycle through the Event and Show that image each time. You won't notice because the image will just be there.

You only have to show the image once and it won't go away until you erase it. So you can have your Event show the picture and then turn off.

I wouldn't have it running constantly unless it needed to.
is it just constantly showing that picture every tick, or does it already see its showing a picture and just "skip over it".
Computer programming (which includes eventing) does what you tell it to. There are some specific things in some specific languages that have efficiency checks built in, but as a general rule that's up to you, the programmer, to make sure something is optimized.

Really what I want to know is does it effect the performance at all.
Yes.

I have tested it of course and everything runs fine with no skips/drops or anything, but in a more developed game with more processes happening and just for clean development sake, is it fine to do or a bad idea?
Bad idea. Your game should only do something (such as show an image) when it is necessary to do so. And other people on computers with different specifications could already experience lag from what you're doing.
Thanks everyone for the responses, I figured as much that it was a bad idea but was hoping it would be fine for not having to remake a system. Time to grind away.
The basic game loop (any game loop, not just RPGMV):

Load Assets: Load all necessary resources such as images and audio for the next scene or segment.
Update Logic: Update the game's content, behavior, and logic. This includes handling events and parallel processing.
Draw Methods: Render the updated game state to the screen.

Example:

If you load a sprite at position (X: 200, Y: 200), update its position to move 2 pixels to the right, and then draw it, the game will continue to draw the sprite at its new position.
The engine will erase and redraw the sprite every cycle, even if the position does not change.

Think of it like an animated chalkboard: you draw on it, erase it, and then redraw it repeatedly.
While you might not notice a difference, the game is continuously drawing what is already drawn, which is redundant.


A "cleaner" approach would be to use conditions :
"If the sprite is not drawn => Draw the picture and set PictureDrawn ON"
This way, if the picture is drawn it will not attempt to redraw it, as the condition will not be met and the game won't attempt to redraw it every frame.
A "cleaner" approach would be to use conditions :
"If the sprite is not drawn => Draw the picture and set PictureDrawn ON"
An even cleaner approach would be to use another page on the event (or control the switch if it's a common parallel event) to make it not run at all under circumstances where the picture has already been drawn.

This might have been what you meant, but your suggestion read to me like a Conditional Branch inside the event, where ideally the event isn't happening if it doesn't need to. 😉

Also, make sure as a general practice that you never have parallel events running without a Wait command unless they actually need to be executed every frame.
An even cleaner approach would be to use another page on the event (or control the switch if it's a common parallel event) to make it not run at all under circumstances where the picture has already been drawn.

This might have been what you meant, but your suggestion read to me like a Conditional Branch inside the event, where ideally the event isn't happening if it doesn't need to. 😉
It's the reason I put "quotes" actually. 😊

Since he was talking about a parrallel event I used the switch approach, on a normal event a self-switch or secondary event page with more specific conditions will be better.


The switch approach would still need to use a conditionnal branch though to read its state (in parrallel event or common event), unless I'm missing something. ^^


Edit: (I'll edit here instead of prolonging the topic. ^^)
What I mean with the last sentence is, you will need a conditionnal branch to check current state of a switch.
You can indeed use a switch to activate the common parrallel event, but you probably will use another switch for that + It will only check if the switch is true, it will not check for false.
Since he was talking about a parrallel event I used the switch approach
The switch approach would still need to use a conditionnal branch though to read its state (in parrallel event or common event), unless I'm missing something. ^^
I'm not sure what you mean.

1721650787376.png

1721650808810.png


As long as switch 2 is on the parallel event on page 1 will never enter the interpreter's queue. It does not require any second event to monitor anything.
I'm not sure what you mean.

View attachment 312214
View attachment 312215

As long as switch 2 is on the parallel event on page 1 will never enter the interpreter's queue. It does not require any second event to monitor anything.
That's what I meant, maybe I said it with wrong words though.

I meant, you will need a switch and a condition. If anything page 2 acts as a condition (If the switch is off, then do this), bypassing page 1 untill the condtion is no longer met.


PS : I also thought about a parrallel common event, not a map parrallel event, so there might have been a misunderstanding there. 😀
That's what I meant, maybe I said it with wrong words though.
That's fine!

1721652380952.png


I think I don't quite understand what you mean by
The switch approach would still need to use a conditionnal branch though to read its state

That's the point of the Switch on a common parallel event, it only runs when that switch is on.

Anyway, I just wanted to make sure the OP understood what everyone was saying 🙂

Original thread: https://forums.rpgmakerweb.com/threads/parallel-event-showing-an-image-how-does-it-really-work.170506/