Kush-Gold-Rush / MineShaft

An Gym compatible environment for Artificial Intelligence Reinforcement Agent to play GameFi
MIT License
0 stars 9 forks source link

[PoC] Will `d3dshot` more efficient in comparing to `mss`? #41

Open NewJerseyStyle opened 2 years ago

NewJerseyStyle commented 2 years ago

We currently using mss for screenshot. However some people suggested d3dshot as a strong alternative solution. We should test them see which is better

ivesiuchunproject commented 2 years ago

I have tested both mss and d3dshot as a screen capture method. In my testing, the screen capture fps of d3dshot can be up to 30fps while that of mss is only around 20 . Some comments in the internet said the d3dshot fps can get to 60up. However, when I used it in "Optional observation space in info of dictionary #21" to capture screen, the overall fps dropped significantly. My guess is that the matchtemplate() part takes much longer time than only screen capturing.