Questions About Parallel Process

Hello guys  🙂


I'm planning to develop a Farming game in android,


I want to run the event of the plots (crops) via Common Events by Changing its image, controlling switches etc.


Question:


- The number of plots that i want to create is at least 50 so i'll create 50 Common Events or put that 50 Common Events In 1 event only? Suggestion for this? 🙂


- If i make more parallel process on my game is there any bad effects? In terms of developing it on Mobile?


Thank you for your response 🙂
You have to keep in mind that parallel event will work without stopping. It can use a lot of ressources.


One time, I made perk system with 14 parallel common event which were checking the level of the actors constantly to give them the Perks points.


The game was lagging like hell. And my events were just checking variables. Avoid making a lot of parallel events if tey will have to work at the same time.

1 parallel event is way better in my opinion. 
did your parallel process events have ANY waits exactly to prevent the lagging issue?


@Linard what's the point of using common events rather than map events?  You've either got to run the common events by turning on switches to make them active (and in that case a self switch will be meaningless as it won't relate to any map events) or by calling them from the map events, which mean those need to be set to parallel process anyway.


You could check out my Multi Timers plugin which lets you time individual events to adjust their self switches after a set delay, and you don't need ANY common events or parallel process events.  It also continues to work when you change maps.
@InBlast: Thanks Dude 🙂  Question- your system you've made is for android? and if that is for android my command should change and compile it in 1 parallel event. Thank you 🙂


@Shaz: Thanks 🙂 There's no Waits on my events and i don't know what is that one. Maybe i should study that. My point about using common events is to keep my command more shorter. Thanks i will check out that plugin 😀  Thank ouy 😀
The system I made was for PC. I didn't use any wait at the beginning, but because of the way I needed it, I couldn't set bifg waits, and it lagged anyway with waits commands.
Now, I try to avoid parallel events (of course there is some I need).
If you want all your events to do the same thing, you could set up the common tasks in a common event, yes, and then just have each event do a Call Common Event command when they need to.  I'd still use the plugin for the timing though.  You can do the plugin call (set a timer to turn self switch B on in 5 minutes) within the common event.  The beauty of common events is that you don't need to put the same code into individual events, so if you want to change something, you only have one place to change it rather than 50.  I'm not sure what your reference to 50 common events was though - if you had 50 map events and you wanted them to all do the same thing, you certainly wouldn't set up 50 different common events all with the same code.
Thanks thanks thanks 🙂
If you are planning to develop a game for mobile that's something more than a "just for fun" project, I highly recommend you handle things like this through JavaScript.  You don't even need to learn all of MV's default code structures (even though that would be ideal) - you can save an enormous amount of processing commitment by doing something like having a single Parallel Process (common or map) event that loops through every plot of land and changes a picture or sets a switch if needed, and you can do this by simply using a single "Script..." event block inside the event, and then adding a short (3 to 60 frames depending on your needs) Wait afterwards so that the event isn't running every single frame.  You may also want to look into "Duplicate Events"/"Reference Events" plugins - my instinct is that they would significantly aid performance in a setup like this, but I don't know for sure.
@Wavelength: Thanks for this one 🙂  Probably scripting is very complicated for me but i'll try that 🙂  

Original thread: https://forums.rpgmakerweb.com/threads/questions-about-parallel-process.65667/