Games run very slow on Mac in 0.2b3
See original GitHub issueexpected behaviour
Running headful in the new version 0.2b3 on Mac, the game runs very slow. CherryPi shows about 15 fps with --game_speed 10. Even with --game_speed 0 it runs at about 15 fps.
actual behaviour
In version 0.2b2 the game ran at about 48 fps with --game_speed 10.
steps to reproduce
output of command scbw.play --bots "Marian Devecka" "CherryPi" --show_all --game_speed 10 --log_level=DEBUG
DEBUG checking bot in /Users/micky/.scbw/bots/Marian Devecka DEBUG found bot in /Users/micky/.scbw/bots/Marian Devecka DEBUG checking bot in /Users/micky/.scbw/bots/CherryPi DEBUG found bot in /Users/micky/.scbw/bots/CherryPi DEBUG [‘docker’, ‘run’, ‘-d’, ‘–privileged’, ‘–name’, ‘GAME_602E0337_0_Marian_Devecka’, ‘–volume’, ‘/Users/micky/.scbw/logs:/app/logs:rw’, ‘–volume’, ‘/Users/micky/.scbw/bots:/app/bots:ro’, ‘–volume’, ‘/Users/micky/.scbw/maps:/app/sc/maps:rw’, ‘–volume’, ‘/Users/micky/.scbw/bwapi-data/BWTA:/app/sc/bwapi-data/BWTA:rw’, ‘–volume’, ‘/Users/micky/.scbw/bwapi-data/BWTA2:/app/sc/bwapi-data/BWTA2:rw’, ‘–net’, ‘sc_net’, ‘-p’, ‘5900:5900’, ‘–volume’, ‘/Users/micky/.scbw/bots/Marian Devecka/write/GAME_602E0337_0:/app/sc/bwapi-data/write:rw’, ‘-e’, ‘PLAYER_NAME=Marian Devecka’, ‘-e’, ‘PLAYER_RACE=Z’, ‘-e’, ‘NTH_PLAYER=0’, ‘-e’, ‘NUM_PLAYERS=2’, ‘-e’, ‘GAME_NAME=GAME_602E0337’, ‘-e’, ‘MAP_NAME=/app/sc/maps/sscai/(2)Benzene.scx’, ‘-e’, ‘GAME_TYPE=FREE_FOR_ALL’, ‘-e’, ‘SPEED_OVERRIDE=10’, ‘-e’, ‘BOT_NAME=Marian Devecka’, ‘-e’, ‘BOT_FILE=KillerBot.dll’, ‘-e’, ‘BOT_BWAPI=4.1.2’, ‘-e’, ‘TM_LOG_RESULTS=…/logs/GAME_602E0337_0_results.json’, ‘-e’, ‘TM_LOG_FRAMETIMES=…/logs/GAME_602E0337_0_frames.csv’, ‘starcraft:game’, ‘/app/play_bot.sh’, ‘–headful’] INFO launched BotPlayer:Marian Devecka:Z in container GAME_602E0337_0_Marian Devecka DEBUG [‘docker’, ‘run’, ‘-d’, ‘–privileged’, ‘–name’, ‘GAME_602E0337_1_CherryPi’, ‘–volume’, ‘/Users/micky/.scbw/logs:/app/logs:rw’, ‘–volume’, ‘/Users/micky/.scbw/bots:/app/bots:ro’, ‘–volume’, ‘/Users/micky/.scbw/maps:/app/sc/maps:rw’, ‘–volume’, ‘/Users/micky/.scbw/bwapi-data/BWTA:/app/sc/bwapi-data/BWTA:rw’, ‘–volume’, ‘/Users/micky/.scbw/bwapi-data/BWTA2:/app/sc/bwapi-data/BWTA2:rw’, ‘–net’, ‘sc_net’, ‘-p’, ‘5901:5900’, ‘–volume’, ‘/Users/micky/.scbw/bots/CherryPi/write/GAME_602E0337_1:/app/sc/bwapi-data/write:rw’, ‘-e’, ‘PLAYER_NAME=CherryPi’, ‘-e’, ‘PLAYER_RACE=Z’, ‘-e’, ‘NTH_PLAYER=1’, ‘-e’, ‘NUM_PLAYERS=2’, ‘-e’, ‘GAME_NAME=GAME_602E0337’, ‘-e’, ‘MAP_NAME=/app/sc/maps/sscai/(2)Benzene.scx’, ‘-e’, ‘GAME_TYPE=FREE_FOR_ALL’, ‘-e’, ‘SPEED_OVERRIDE=10’, ‘-e’, ‘BOT_NAME=CherryPi’, ‘-e’, ‘BOT_FILE=BWEnv.dll’, ‘-e’, ‘BOT_BWAPI=4.2.0’, ‘-e’, ‘TM_LOG_RESULTS=…/logs/GAME_602E0337_1_results.json’, ‘-e’, ‘TM_LOG_FRAMETIMES=…/logs/GAME_602E0337_1_frames.csv’, ‘starcraft:game’, ‘/app/play_bot.sh’, ‘–headful’] INFO launched BotPlayer:CherryPi:Z in container GAME_602E0337_1_CherryPi INFO Checking if game has launched properly… DEBUG running containers: [‘a0d99f178f6f’, ‘05ff60c78cce’] INFO Launching vnc viewer for BotPlayer:Marian Devecka:Z on port 5900 INFO Launching vnc viewer for BotPlayer:CherryPi:Z on port 5901 INFO In headful mode, you must specify and start the game manually. Select the map, wait for bots to join the game and then start the game. INFO Waiting until game is finished… DEBUG running containers: [‘a0d99f178f6f’, ‘05ff60c78cce’] DEBUG running containers: [‘a0d99f178f6f’, ‘05ff60c78cce’] DEBUG running containers: [‘a0d99f178f6f’, ‘05ff60c78cce’] DEBUG running containers: [‘a0d99f178f6f’, ‘05ff60c78cce’] DEBUG running containers: [‘a0d99f178f6f’, ‘05ff60c78cce’] DEBUG running containers: [‘a0d99f178f6f’, ‘05ff60c78cce’] DEBUG running containers: [‘a0d99f178f6f’, ‘05ff60c78cce’] DEBUG running containers: [‘a0d99f178f6f’, ‘05ff60c78cce’] DEBUG running containers: [‘a0d99f178f6f’, ‘05ff60c78cce’] DEBUG running containers: [‘a0d99f178f6f’, ‘05ff60c78cce’] DEBUG running containers: [‘a0d99f178f6f’, ‘05ff60c78cce’] DEBUG running containers: [‘a0d99f178f6f’, ‘05ff60c78cce’] DEBUG running containers: [‘a0d99f178f6f’, ‘05ff60c78cce’] DEBUG running containers: [‘a0d99f178f6f’, ‘05ff60c78cce’] DEBUG running containers: [‘a0d99f178f6f’, ‘05ff60c78cce’] DEBUG running containers: [‘a0d99f178f6f’, ‘05ff60c78cce’] DEBUG running containers: [‘a0d99f178f6f’, ‘05ff60c78cce’] ^CWARNING Caught interrupt, shutting down containers WARNING This can take a moment, please wait. DEBUG running containers: [‘a0d99f178f6f’, ‘05ff60c78cce’] a0d99f178f6f 05ff60c78cce INFO Game cancelled.
GAME_6B910888_1_CherryPi_game.log:
2018-02-14T08:35:52 Starting game /app/sc /app fixme:winediag:start_process Wine Staging 2.20 is a testing version containing experimental patches. fixme:winediag:start_process Please mention your exact version when filing bug reports on winehq.org. fixme:ntdll:EtwEventRegister ({5eec90ab-c022-44b2-a5dd-fd716a222a15}, 0x301123, 0x328020, 0x328038) stub. fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 0x325e00, 43) stub fixme:ntdll:EtwEventRegister ({5eec90ab-c022-44b2-a5dd-fd716a222a15}, 0x6f1123, 0x718020, 0x718038) stub. fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 0x715e00, 43) stub fixme:console:AttachConsole stub ffffffff attached loading /app/sc/bwapi-data/BWAPI.dll…fixme:ntdll:EtwEventRegister ({5eec90ab-c022-44b2-a5dd-fd716a222a15}, 0x12d27f0, 0x12e0030, 0x12e0048) stub. fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 0x12d2560, 43) stub success fixme:d3d:wined3d_dxtn_init Wine cannot find the txc_dxtn library, DXTn software support unavailable. err:wgl:init_opengl Failed to load libGL: libGL.so.1: cannot open shared object file: No such file or directory err:wgl:init_opengl OpenGL support is disabled. fixme:x11drv:X11DRV_desktop_SetCurrentMode Cannot change screen BPP from 32 to 8 ALSA lib confmisc.c:768:(parse_card) cannot find card ‘0’ ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM default ALSA lib confmisc.c:768:(parse_card) cannot find card ‘0’ ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_card_driver returned error: No such file or directory ALSA lib confmisc.c:392:(snd_func_concat) error evaluating strings ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_concat returned error: No such file or directory ALSA lib confmisc.c:1251:(snd_func_refer) error evaluating name ALSA lib conf.c:4292:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory ALSA lib conf.c:4771:(snd_config_expand) Evaluate error: No such file or directory ALSA lib pcm.c:2266:(snd_pcm_open_noupdate) Unknown PCM default fixme:d3d:wined3d_get_adapter_raster_status wined3d 0x34b9e68, adapter_idx 0, raster_status 0x33f984 semi-stub! fixme:ddraw:ddraw7_WaitForVerticalBlank iface 0x34b64f8, flags 0x1, event (nil) stub! 2018-02-14T08:36:02 Checking game status … 2018-02-14T08:36:05 Checking game status … fixme:winsock:WSAIoctl WS_SIO_UDP_CONNRESET stub fixme:winsock:WSAIoctl WS_SIO_UDP_CONNRESET stub 2018-02-14T08:36:08 Checking game status … 2018-02-14T08:36:11 Checking game status … 2018-02-14T08:36:14 Checking game status … 2018-02-14T08:36:17 Checking game status … 2018-02-14T08:36:20 Checking game status … 2018-02-14T08:36:23 Checking game status … 2018-02-14T08:36:26 Checking game status … 2018-02-14T08:36:29 Checking game status … 2018-02-14T08:36:32 Checking game status …
operating system
macOS 10.12.6
docker version
output of command docker version
Client: Version: 17.12.0-ce API version: 1.35 Go version: go1.9.2 Git commit: c97c6d6 Built: Wed Dec 27 20:03:51 2017 OS/Arch: darwin/amd64
Server: Engine: Version: 17.12.0-ce API version: 1.35 (minimum version 1.12) Go version: go1.9.2 Git commit: c97c6d6 Built: Wed Dec 27 20:12:29 2017 OS/Arch: linux/amd64 Experimental: true
scbw version
output of command scbw.play -v
0.2b3
Issue Analytics
- State:
- Created 6 years ago
- Comments:19 (3 by maintainers)
Everything works great now, fantastic work! 😄
Try
0.2b7