Skip to content

Buffers size mismatch. due to invalid resolutions. #404

Open

Description

@Miffyli

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.

Activity

  1. added this to the 1.1.15 milestone on Jan 8, 2023
  2. modified the milestones: 1.2.0, 1.2.X on Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions