Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change game speed #19

Open
alkurbatov opened this issue Aug 15, 2017 · 1 comment
Open

Change game speed #19

alkurbatov opened this issue Aug 15, 2017 · 1 comment
Assignees

Comments

@alkurbatov
Copy link
Contributor

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?

@davechurchill
Copy link
Owner

Good suggestion, I will add this to the config file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants