Skip to content

Commit

Permalink
car_racing.py memory leaking issue openai#2062 solving
Browse files Browse the repository at this point in the history
  • Loading branch information
jackyoung96 committed Nov 17, 2020
1 parent c4d0af3 commit 6b1711f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gym/envs/box2d/car_racing.py
Expand Up @@ -528,6 +528,7 @@ def render_road(self):
len(polygons_) // 3, ("v3f", polygons_), ("c4f", colors) # gl.GL_QUADS,
)
vl.draw(gl.GL_QUADS)
vl.delete()

def render_indicators(self, W, H):
s = W / 40.0
Expand Down

0 comments on commit 6b1711f

Please sign in to comment.