-
-
Notifications
You must be signed in to change notification settings - Fork 425
Open
Labels
Milestone
Description
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 throw Buffers size mismatch. upon init.
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 in ScreenResolution
Suggestions
- ViZDoom could check what resolutions are available and offer them via e.g.
get_available_resolutionsfunction. - More available resolutions in
ScreenResolutionor 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.