Which parallel event option causes less lag?

● ARCHIVED · READ-ONLY
Started by Darangen 14 posts View original ↗
  1. 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.
  2. 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. ;) /)
  3. 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.
  4. Just out of curiosity: what are the parallel processes?
  5. 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.
  6. c0n said:
    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. 

    Darangen said:
    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.
  7. 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.
  8. 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
  9. Darangen said:
    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.
  10. 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.
  11. 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.
  12. 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.
  13. You can turn off checks within a single event as well.
  14. 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:
    image.png