Which parallel event option causes less lag?

Darangen

Veteran
Veteran
Joined
Jun 6, 2013
Messages
84
Reaction score
26
Primarily Uses
Would running two short parallel events cause more lag than running one longer parallel event?

I'm trying to decide if I should have one long parallel event or several shorter parallel events.  They would both end up being the same length overall.
 

Gothic Lolita

YouTube Starlet
Veteran
Joined
Oct 21, 2014
Messages
1,132
Reaction score
197
First Language
German
Primarily Uses
RMMV
It belongs to the situation.
Some of the parallel processes aren't working in combination and will only work in two different events.
For example, I needed to do 3 common events for my level up system.
Because if I put them all together, nothing will work at all. :D (\s/)

But I think 2 parallel processes, don't affect the performance at all. ;) /)
 

Susan

Veteran
Veteran
Joined
Sep 1, 2014
Messages
2,748
Reaction score
8,346
First Language
No idea...
Primarily Uses
RMMV
It's just as Cheeky Moon says - it depends on the situation.

2-3 parallel events wouldn't affect your performance. 10-20 will.

You also have to put into consideration regarding any other scripts you might use that could affect your performance. Lighting scripts are usually the worse culprits.

Also, you have to make sure you make sure your eventing is optimized.
 

c0n

Villager
Member
Joined
Dec 3, 2014
Messages
13
Reaction score
6
First Language
English
Primarily Uses
Just out of curiosity: what are the parallel processes?
 

Susan

Veteran
Veteran
Joined
Sep 1, 2014
Messages
2,748
Reaction score
8,346
First Language
No idea...
Primarily Uses
RMMV
When you create an event on the map, you have the default trigger that shows up near the bottom of the window will show 'Action Button'.

You can change that to 'Player Touch' 'Event Touch' 'Autorun' and 'Parallel Process'.

Placing a trigger to 'Parallel Process' means that the contents of that event box will run continuously when the conditions (if any), are met.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,674
First Language
German
Primarily Uses
RMMV
Just out of curiosity: what are the parallel processes?
Just another comment: if you don't know what parallel processes are, you're better off not using them. They are a form of events that are needed for a limited number of very special functions - outside those options, they slow down your game a lot. And unfortunately there are some people who think they should be used whenever they don't understand why their logic failed in their events, giving the (false) advice to use them whenever you have problems. 

Would running two short parallel events cause more lag than running one longer parallel event?


I'm trying to decide if I should have one long parallel event or several shorter parallel events.  They would both end up being the same length overall.
The length of a parallel process rarely matters - it's how often it is called that matters. Without waits, a parallel process will be executed sixty times per second by default, that's what causes the lag.
 

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
Performance imapact of a parallel process is based on


-what it's running, and


-how many times it runs, and


-length, but this is negligible unless you have 10000 commands or something (of course, it does make a difference since iterating an array is not free, not to mention there's more going on than simply iterating an array)


Once a parallel even starts running, it will continue to run till it's done.


So depending on how long this process takes, you can experience all sorts of lag.


It is not truly parallel in the sense that it will actually block rest of the engine from updating until it's finished running.
 
Last edited by a moderator:

c0n

Villager
Member
Joined
Dec 3, 2014
Messages
13
Reaction score
6
First Language
English
Primarily Uses
Thanks guys! I was actually asking the OP what the content of his parallel processes are. However, it's nice to see everyone is so helpful! xD
 

♥SOURCE♥

Too sexy for your party.
Veteran
Joined
Mar 14, 2012
Messages
693
Reaction score
411
Primarily Uses
Would running two short parallel events cause more lag than running one longer parallel event?
Yes.

If you can make the needed mechanic using only one parallel process event and you're concern about performance, use only one.
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,592
Reaction score
6,522
First Language
Indonesian
Primarily Uses
RMVXA
When you have many events on map, then you changed variables and switches using parallel process.

Those event will be refreshed just to make sure if they're in proper page.

If you have around 200 events, and you changed the switches and variables on the fly, you already add 200 x 60 process of refreshing each event. Event with has more page checked longer than other events. Not to mention, if you have many common event in your database, they're being checked as well.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Yes, you need to explain what these parallel processes are going to do and how you're going to write them, before we can give you an accurate response.


If you don't NEED to have them running as two different events, then don't. But how you design your single event could make it lag or not lag as well.
 
  • Like
Reactions: c0n

Darangen

Veteran
Veteran
Joined
Jun 6, 2013
Messages
84
Reaction score
26
Primarily Uses
It's a process that checks certain variables or switches and puts balloons on events if needed.


I was wondering if I should do one process per check, or one process to do all checks. I was thinking more than one because then I could turn off the ones that don't need to be checked anymore.
 
Last edited by a moderator:

Tsukihime

Veteran
Veteran
Joined
Jun 30, 2012
Messages
8,564
Reaction score
3,846
First Language
English
You can turn off checks within a single event as well.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
It would be easier to understand what you're talking about if you just show it to us. Screenshots are pretty easy to take and attach:


How to take a Screenshot:


You've heard people say to take a screenshot, but how does one take a screenshot of their game? Simple, while the game is running, hit the Prt Scr button on your keyboard, which is located right next to your F12 key. If you're using a laptop, you might have to use the Fn key in combination with the Prt Scr key to get it to work.

Now that you've pressed the button, it's time to paste this screenshot into an image editing software. If you don't have anything fancy such as Adobe Photoshop, GIMP or Paint.NET, no worries; you can use MS Paint instead. Open up your image editing software, create a new file, and then hit ctrl+v on your keyboard, or simply right click on the screen and select paste. This should instantly paste the screenshot into your image editing software. You can go ahead and crop the image to suit your needs, or if you don't even know what that means, you can just upload it as it is.

Save the image as a PNG, or if you really need to, as a high quality JPG.


How to upload the image to the forums


Now that you have you have an image on your computer you'd like to show us, how can you get it to show up on the forums? Firstly, you need to find an image hosting site, photobucket.com or imageshack.us are popular ones. If you have another image uploading website, great - use that one! Either way, upload it to the site, and then get the direct link. Don't get the resized link, or the thumbnail link, but the direct URL. You'll know you have the direct URL if the URL ends with the file extension you saved your image in (which will hopefully be .png).



Once you have this direct URL to your image, simply use the IMG tags in your forum post and paste the URL in between them. If this image is big, please leave the image in spoiler tags.

IMG tags:
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,049
Members
137,569
Latest member
Shtelsky
Top