Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

How many parallel processes can I run at once?

Aevin

Member

I have a weapon that bestows a certain skill when equipped. The event that checks for the equipped item is a parallel process, and it's working perfectly.

But what if I want multiple weapons that teach different skills? The help file says running multiple parallel processes can lead to problems, but is really vague about how many I can run. Can someone elaborate, please?
 

Zeriab

Sponsor

You can theoretical have 1998 parallel processes running at once. (999 common events and 999 events on the map)
Note that a parallel process run each frame and the more you have the longer time it takes to the frame.
On the other hand you can a single parallel process using more time each frame than say 3 other parallel processes.
You can't really know when you have too much running other than testing. There are no golden rule or anything.
Putting a 1 wait frame at the end of a parallel process seems to cut its cpu usage in half or thirds (assuming you have no other waits)
*hugs*
- Zeriab
 
But it sounds like the type of thing you are doing could just have most of it in a single parallel process, so you wouldn't need many parallel processes anyways.

In my game, every monster in a map is a parallel process, because it is calculating the distance between it and the player. I don't get any lag doing this with an average computer (and that's over 20 parallel processes sometimes). But I do put waits in the parallel process, and that's important to do.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top