Chrispresso / SuperMarioBros-AI

346 stars 71 forks source link

Speed up the FPS? #1

Closed NeighborhoodCoding closed 4 years ago

NeighborhoodCoding commented 4 years ago

Hi. Your code is the best one ever..

I just wonder...can I speed up(Frame per second up) when the visualization is on?

Thank you.

Chrispresso commented 4 years ago

Hi!

For speeding up with visualization, you can try setting a higher FPS (like 100 or even 1000) and hitting "Ctrl + V" to hide the visualization on that screen. PyQt can refresh at the rate of your monitor from what I've experienced. This causes you to only be able to have the network run 60 times/second. That is the main reason I allow you to run without visualization, in hopes that your training can be faster.