Pixel Game Maker MV - Elfin Force
System information
System:
Host: tsuki Kernel: 6.2.12-zen1-1-zen arch: x86_64 bits: 64 compiler: gcc
v: 12.2.1 Desktop: sway v: 1.8.1 dm: N/A Distro: Arch Linux
CPU:
Info: 8-core model: AMD Ryzen 7 5800X bits: 64 type: MT MCP arch: Zen 3+
rev: 0 cache: L1: 512 KiB L2: 4 MiB L3: 32 MiB
Speed (MHz): avg: 2325 high: 3800 min/max: 2200/4850 boost: enabled cores:
1: 3800 2: 2200 3: 2200 4: 2200 5: 2200 6: 2200 7: 2200 8: 2200 9: 2200
10: 2608 11: 2200 12: 2200 13: 2200 14: 2200 15: 2200 16: 2200
bogomips: 121590
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm
Graphics:
Device-1: AMD Navi 23 [Radeon RX 6600/6600 XT/6600M] vendor: Sapphire
driver: amdgpu v: kernel arch: RDNA-2 pcie: speed: 16 GT/s lanes: 16 ports:
active: DP-1 empty: DP-2,DP-3,HDMI-A-1 bus-ID: 2d:00.0 chip-ID: 1002:73ff
Display: wayland server: X.org v: 1.21.1.8 with: Xwayland v: 23.1.1
compositor: sway v: 1.8.1 driver: X: loaded: amdgpu dri: radeonsi
gpu: amdgpu display-ID: 1
Monitor-1: DP-1 model: Gigabyte G27Q res: 2560x1440 dpi: 108
diag: 685mm (27")
API: OpenGL v: 4.6 Mesa 23.0.3 renderer: AMD Radeon RX 6600 (navi23 LLVM
15.0.7 DRM 3.49 6.2.12-zen1-1-zen) direct-render: Yes
Describe the issue
Elfin Force shows a white square at the top right of the screen in some areas.
The game can be downloaded for free here, so it's easy to test:
https://tacobee.itch.io/elfin-force
This is an issue that happens with most Pixel Game Maker MV games.
Regression
It's not a regression, I've known this issue for a while.
There's a bug report on another game with the same engine on Proton issues:
https://github.com/ValveSoftware/Proton/issues/5272
Screenshots/video files (if applicable)
Issue here:
Extra Information
As far as I know this glitch happens with AMD and Intel MESA drivers, only Nvidia proprietary drivers work properly (I've tested).
This engine uses OpenGL and you can see it in action_log.txt
:
[2023/04/26 16:31:49] projectFilePath:
[2023/04/26 16:31:49] ElfinForce_2021_0228/ElfinForce_v026/Resources/data/project.json
[2023/04/26 16:31:49] # InputManager Init
[2023/04/26 16:31:49] # AudioManager Init
[2023/04/26 16:31:49] # Director GetInstance
[2023/04/26 16:31:49] # GetOpenGLView
[2023/04/26 16:31:49] # IMGUIGLViewImpl CreateWithRect
[2023/04/26 16:31:49] ############################################################################################
[2023/04/26 16:31:49] # Action log
[2023/04/26 16:31:49] ############################################################################################
[2023/04/26 16:31:49] # OpenGL
[2023/04/26 16:31:49] Vender : AMD
[2023/04/26 16:31:49] GPU : AMD Radeon RX 6600 (navi23, LLVM 15.0.7, DRM 3.49, 6.2.12-zen1-1-zen)
[2023/04/26 16:31:49] OpenGL ver.4.6 (Compatibility Profile) Mesa 23.0.3
[2023/04/26 16:31:49] ############################################################################################
[2023/04/26 16:31:49] # GLFW
[2023/04/26 16:31:49] 3.2.1 Win32 WGL EGL VisualC
[2023/04/26 16:31:49] ############################################################################################
[2023/04/26 16:31:49] # cocos2d Configuration
[2023/04/26 16:31:49]
{
gl.version: 4.6 (Compatibility Profile) Mesa 23.0.3
gl.supports_NPOT: true
cocos2d.x.version: cocos2d-x-3.17.1
cocos2d.x.compiled_with_profiler: false
cocos2d.x.build_type: RELEASE
cocos2d.x.compiled_with_gl_state_cache: true
gl.max_texture_size: 16384
gl.supports_OES_packed_depth_stencil: false
gl.vendor: AMD
gl.renderer: AMD Radeon RX 6600 (navi23, LLVM 15.0.7, DRM 3.49, 6.2.12-zen1-1-zen)
gl.max_texture_units: 192
gl.supports_ETC1: false
gl.supports_S3TC: true
gl.supports_ATITC: false
gl.supports_PVRTC: false
gl.supports_BGRA8888: false
gl.supports_discard_framebuffer: false
gl.supports_vertex_array_object: true
gl.supports_OES_map_buffer: false
gl.supports_OES_depth24: false
}
[2023/04/26 16:31:49] ############################################################################################
[2023/04/26 16:31:49] # Language:0
[2023/04/26 16:31:49] ############################################################################################
[2023/04/26 16:31:49] # ScriptingCore Start
[2023/04/26 16:31:49] # FontManager GetInstance
[2023/04/26 16:31:49] # GameManager StartCanvas
[2023/04/26 16:31:49] # DebugManager GetInstance
[2023/04/26 16:32:30] normal termination.
Using LIBGL_ALWAYS_SOFTWARE=true
has the same problem, so it seems to be a specific MESA issue.
This used to occur in Windows with AMD drivers as well:
- https://steamcommunity.com/app/837510/discussions/2/1798529872660054893/
- https://steamcommunity.com/app/837510/discussions/0/2577697791647001217/
EDIT:
One interesting bit is this in the game logs:
Ready for GLSL
Ready for OpenGL 2.0
It's using OpenGL 2.0 for some reason, which only supports GLSL 1.10. This could actually be a bug in the engine itself because normally it should use the latest version, but I'm not sure.