neilself / GameImageGenerator

A templating tool to generate images for card or board games.
0 stars 0 forks source link

Implement multi-threading for image creation #1

Open neilself opened 3 years ago

neilself commented 3 years ago

Each image should be, at least in theory, non-dependent on others. So it should be very possible to run them on separate threads, with a big speedboost.

neilself commented 3 years ago

Okay, so I tried this, with no discernible effect on runtime. My current three theories:

  1. Kotlin is smart enough to where it was already running the pertinent code on multiple threads (would this be visible in task manager somehow?).
  2. The script is largely bound by disk I/O. Thus, taking advantage of multiple cores simply isn't useful.
  3. I done effed up the coroutines, such that they're not working properly. I've never used them before, so this is highly plausible.