Skip to content

Instantly share code, notes, and snippets.

rmst / gist:61a94c6a3d2704c3be593bbe67b1b1c2
Created Aug 15, 2018
Error running a Unity3D application with SDL_VIDEODRIVER=offscreen flag
View gist:61a94c6a3d2704c3be593bbe67b1b1c2
[simonr@kepler3 downtown_intersection-linux]$ export SDL_VIDEODRIVER=offscreen
[simonr@kepler3 downtown_intersection-linux]$ export SDL_HINT_CUDA_DEVICE=0
[simonr@kepler3 downtown_intersection-linux]$ ./downtown_intersection-linux.x86_64
Set current directory to /store/home_poly/simonr/avenue/unity_assets/downtown_intersection-linux
Found path: /store/home_poly/simonr/avenue/unity_assets/downtown_intersection-linux/downtown_intersection-linux.x86_64
Mono path[0] = '/store/home_poly/simonr/avenue/unity_assets/downtown_intersection-linux/downtown_intersection-linux_Data/Managed'
Mono config path = '/store/home_poly/simonr/avenue/unity_assets/downtown_intersection-linux/downtown_intersection-linux_Data/MonoBleedingEdge/etc'
Preloaded ''
Unable to preload the following plugins:
View .Xcompose
# Find proper key names here:
<Multi_key> <A> <l> : "A" U0391 # GREEK CAPITAL LETTER ALPHA
<Multi_key> <a> <l> : "α" U03B1 # GREEK SMALL LETTER ALPHA
<Multi_key> <B> <e> : "B" U0392 # GREEK CAPITAL LETTER BETA
<Multi_key> <b> <e> : "β" U03B2 # GREEK SMALL LETTER BETA
<Multi_key> <G> <a> : "Γ" U0393 # GREEK CAPITAL LETTER GAMMA
<Multi_key> <g> <a> : "γ" U03B3 # GREEK SMALL LETTER GAMMA
<Multi_key> <D> <e> : "Δ" U0394 # GREEK CAPITAL LETTER DELTA
rmst /
Last active Apr 19, 2022
Python closures vs methods
from timeit import timeit
import inspect
def t():
for f in inspect.stack():
s = """
class Object:


Run e.g. python --outdir ../ddpg-results/experiment1 --env InvertedDoublePendulum-v1

Note: The performance graphs on the gym website look weird because DDPG is alternating training and test phases.

For more information see repo.