python-sc2 icon indicating copy to clipboard operation
python-sc2 copied to clipboard

Delay in triggering first on_step call when realtime=True

Open LostLucidity opened this issue 7 years ago • 6 comments

Hello. As in the title, on_step does get trigger for me until the 11th second in game time. This does not happen when realtime=False. I've emptied out the on_step method with just a print statement to remove any potential computer lag with the same result.

LostLucidity avatar Jul 17 '18 03:07 LostLucidity

Yes, I have the same, but the interval is random. Sometimes a few seconds, sometimes even a whole minute...

alexander-kazakov avatar Jul 25 '18 18:07 alexander-kazakov

Same here. It takes a few seconds before it runs if realtime=True

h3nnn4n avatar Jul 29 '18 19:07 h3nnn4n

This seems to be caused by VSCode. A couple of users on discord have seen this issue cleared when running on the console outside of VSCode.

LostLucidity avatar Aug 08 '18 11:08 LostLucidity

What is VSCode? I'm running via command line.

On Wed, Aug 8, 2018, 13:10 Daniel Muñoz [email protected] wrote:

This seems to be caused by VSCode. A couple of users on discord have seen this issue cleared when running on the console outside of VSCode.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/Dentosal/python-sc2/issues/85#issuecomment-411370291, or mute the thread https://github.com/notifications/unsubscribe-auth/AIqAll7mA2krrBwXRy8mEeu02gp11kl1ks5uOscsgaJpZM4VSI-M .

alexander-kazakov avatar Aug 08 '18 13:08 alexander-kazakov

Visual Studio Code is a popular IDE. You can run from their embedded command line. It seems a subset of this ticket's issue involves this IDE and using their terminal.

LostLucidity avatar Aug 08 '18 16:08 LostLucidity

I have the same issue and its from running the program in pycharm.

pelletier2017 avatar Aug 10 '18 04:08 pelletier2017