It is currently 23 Apr 2024, 10:54
   
Text Size

Running Forge In Many Threads At Once - Safe?

Post MTG Forge Related Programming Questions Here

Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins

Running Forge In Many Threads At Once - Safe?

Postby shedletsky » 14 Jun 2020, 20:52

I'm building a little tournament program that:

1. Finds all the decks in a folder
2. Runs a tournament with them
3. Prints results

I'm using Forge as a headless process that runs multiple rounds between decks like this:
Code: Select all
forge.exe sim -d deck1 deck2 -q -n 100
I have a 16 core machine so I'd like to parallelize this. I've written a console app that basically creates a bunch of Forge processes in a thread pool, runs them all, and waits for them to finish.

My question is, is it safe to run Forge in this way? I.e. does the Forge process make the assumption that it it is the only copy of Forge running at any given time? I've maybe noticed an increase in AI errors when I'm running in parallel, but nothing conclusive yet.
shedletsky
 
Posts: 12
Joined: 11 Sep 2016, 19:56
Has thanked: 0 time
Been thanked: 0 time

Return to Developer's Corner

Who is online

Users browsing this forum: No registered users and 41 guests

cron

Who is online

In total there are 41 users online :: 0 registered, 0 hidden and 41 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 41 guests

Login Form