Buffers size mismatch.
due to invalid resolutions.
#404
Labels
Milestone
Buffers size mismatch.
due to invalid resolutions.
#404
Related discussion: #179
All the following was done on ViZDoom 1.1.7, Win10 and Python 3.7.
On some Windows machines (for me it was Fujitsu all-in-ones), ZDoom only allows very selected set of resolutions to run at. If you try to use ViZDoom with e.g.
ScreenResolution.RES_160X120
, it will throwBuffers size mismatch.
uponinit
.The solution for me was to launch the ZDoom binary, go to
Options -> Set Video Mode
and checking the list of available resolutions there. For me it gave 480x270 and 1920x1080. ViZDoom now runs perfectly with 1920x1080, but could not test 480x270 since it is not available inScreenResolution
Suggestions
get_available_resolutions
function.ScreenResolution
or adaptive to available resolutions. I see some resolutions (like the 480x270) have black edges, but my only option was to go with huge 1920x1080 which slowed things down.The text was updated successfully, but these errors were encountered: