Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buffers size mismatch. due to invalid resolutions. #404

Open
Miffyli opened this issue Aug 8, 2019 · 0 comments
Open

Buffers size mismatch. due to invalid resolutions. #404

Miffyli opened this issue Aug 8, 2019 · 0 comments
Milestone

Comments

@Miffyli
Copy link
Collaborator

Miffyli commented Aug 8, 2019

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_resolutions function.
  • More available resolutions in 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.
@mwydmuch mwydmuch added this to the 1.1.15 milestone Jan 8, 2023
@mwydmuch mwydmuch modified the milestones: 1.2.0, 1.2.X Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants