-
Notifications
You must be signed in to change notification settings - Fork 282
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
Any way to run the simulation at normal game speed? #179
Comments
I used the following workaround: while (coordinator.Update()) {
// Slow down game speed for better look & feel while making experiments.
sc2::SleepFor(15);
} It seems that we have no other way. |
Another option is: coordinator.SetRealtime(true); However this also has the effect where a variable number of GameLoops may pass between calls to your OnStep depending on how slow your logic is. If this is undesirable I suggest alkurbatov's solution. |
@KevinCalderone, @alkurbatov's solution works, but keep in mind that you have to include manage_process header.
|
Added helpers for detecting whether a worker is carrying minerals/ves…
I tried using coordinator.SetStepSize(), but it only takes int values, and the default value of 1 is already much faster than a normal game.
The text was updated successfully, but these errors were encountered: