commandcenter icon indicating copy to clipboard operation
commandcenter copied to clipboard

Change game speed

Open alkurbatov opened this issue 8 years ago • 1 comments

Sometimes it is useful to slow down the game and look at the decisions the bot is making however the game is always really fast. Probably we should make a configurable gamespeed parameter in BotConfig.txt similar to the original game (i.e. fast, very fast).

Currently I don't know how that should be done in a proper way. The following approach works for me:

    while (coordinator.Update()) {
        // Slow down game speed for better look & feel while making experiments.
        sc2::SleepFor(15);
    }

Probably higher step value will do the same?

alkurbatov avatar Aug 15 '17 09:08 alkurbatov

Good suggestion, I will add this to the config file

davechurchill avatar Aug 15 '17 17:08 davechurchill