Kautenja / playing-mario-with-deep-reinforcement-learning

An implementation of (Double/Dueling) Deep-Q Learning to play Super Mario Bros.
MIT License
68 stars 12 forks source link

Inefficient render_mode usage in Agent #32

Closed Kautenja closed 6 years ago

Kautenja commented 6 years ago

rgb_array as a render mode adds overhead and effectively does nothing at all. This option should either be removed or integrated in a meaningful fashion. If the latter, a None option should be included to improve performance by not rendering at all. Environments don't need to have render called in order to function in the background.

Kautenja commented 6 years ago

resolved, setting render_mode=None disable any rendering reducing unnecessary extra calls to expensive functions.