pygame.error: video system not initialized
Closed this issue · 4 comments
ycslnc commented
wenzhangliu commented
这个问题还是第一次遇到,查了一下网上也有不少相似的情况,可以参考这个链接看能不能解决:https://bobbyhadz.com/blog/pygame-error-video-system-not-initialized
ycslnc commented
wenzhangliu commented
渲染速度你可以在env.render()函数里添加time.sleep(秒数)来控制。如果你是在tensorboard或者wandb里观察的话,可以改一下runner里的self.fps这个变量,我目前设置的是self.fps=20,这个变量表示frames per second. 后面我会把这个变量写进参数配置文件里,方便大家根据不同的设备来调。
ycslnc commented
好嘞,感谢~