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

Graphic glitches on 16:10 displays #6344

Open
7 tasks done
Seekawan opened this issue Jan 3, 2025 · 1 comment
Open
7 tasks done

Graphic glitches on 16:10 displays #6344

Seekawan opened this issue Jan 3, 2025 · 1 comment
Labels
Severity: Medium Issues described as medium severity as per the new issue form

Comments

@Seekawan
Copy link

Seekawan commented Jan 3, 2025

Prerequisites and Pre-Issue Checklist

  • I'm reporting the issue to the correct repository:

  • MegaMek

  • MegaMekLab

  • MekHQ

  • I've tested the issue against at least the latest MILESTONE version

  • I've asked on the MegaMek Discord about the error

  • I've reviewed the BattleTech rules and MegaMek documentation, and I've confirmed that something isn't working as intended.

  • I've searched the Github tracker and haven't found the issue listed

Severity *

Medium (Gameplay Limitation): Non-core functionality is impaired, providing a suboptimal but playable experience.

Brief Description *

Hello here is the report for a graphical bug I encountered on both my 16:10 laptops.
When trying to sweep the board a sort of graphical bleed happens as in the following screenshots :

Screenshot 2024-12-14 172006
Screenshot 2024-12-24 204637
Screenshot 2024-12-24 231759

Note that it is considerable worsened by playing in fullscreen, playing in windowed mode gives this results :

Screenshot 2024-12-24 095049
Screenshot 2024-12-24 095924

Which is only subtles lines but an issue nonetheless.

The error log is the following :

09:41:44,925 ERROR [megamek.client.ui.swing.boardview.BoardView] {AWT-EventQueue-0}
megamek.client.ui.swing.boardview.BoardView.draw(BoardView.java:876) - Error drawing background image. Raster Bounds: 0.00, 0.00, width:447.00, height:447.00, Attempted Draw Coordinates: 9, -1, width:438, height:448

As you can see the issue is the rendering of the board background image, in this case I was using the BW capellan skin that is default with 0.50.02 MegaMek.

To solve the issue I tried many things including the recommendations at https://github.com/MegaMek/megamek/wiki/Weird-artifacts-Screen-Distortions.
I did not see major improvements with the Dsun commands, be it d3d=false or enabling OpenGL.
But I can recommend to use the RAM advice.

After many test I managed to track the issue to the Megamek skins, as it is an issue with background image.
Many skins use the instruction <tile_background>true</tile_background> in BoardViewBorder.
But, for some reason I do not understand yet, Java does not get where the extra height of 16:10 goes compared to 16:9 and thus tries to fill the void top background with the borders creating the glitch.

So here you have essentially two options to solve the issue, use a skin that does not use a background image like plainSkin or set <tile_background>true</tile_background> to <tile_background>false</tile_background>. By not tilling the background will seem less detailled but the edges will not bleed on the background.

Steps to Reproduce

  1. Have a 16:10 display
  2. Launch MegaMek with a skin having a background image
  3. Swing the board (especially pressing W and D simultaneously)
  4. Look at the top left border of the board view

Operating System *

Windows 11

Java Version *

17.0.13 from Adoptium

MegaMek Suite Version *

v0.50.0

Custom MegaMek Version

0.50.02

Attach Files

Screenshot 2025-01-03 095813

megamek.zip

Final Checklist

  • I've checked to make sure that this issue has not already been filed
  • I'm reporting only one issue in this ticket for clarity and focus
@Seekawan
Copy link
Author

Seekawan commented Jan 3, 2025

A thread on MegaMek's official discord is also following the issue, it is "Graphical glitch on 50.0.01 II"

@HammerGS HammerGS added the Severity: Medium Issues described as medium severity as per the new issue form label Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Severity: Medium Issues described as medium severity as per the new issue form
Projects
None yet
Development

No branches or pull requests

2 participants