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

Vulkan: TileMaps sometimes render incorrectly on Android #61789

Open
doonv opened this issue Jun 7, 2022 · 10 comments
Open

Vulkan: TileMaps sometimes render incorrectly on Android #61789

doonv opened this issue Jun 7, 2022 · 10 comments

Comments

@doonv
Copy link

doonv commented Jun 7, 2022

Godot version

4.0-alpha9

System information

PC: Windows 10 64-bit; Phone: Samsung Galaxy A50

Issue description

I'm working on little farming game. I played the game on my android phone, and I see that the tilemaps render incorrectly and look extremely weird.

Screen_Recording_20220607-150240_Farming.Game.mp4

Sometimes the game runs normal without any glitches, other times it looks extremely weird.

Steps to reproduce

  1. Download the project below.
  2. Open it up in godot 4
  3. Run it on your android device

Minimal reproduction project

Since my game is very small and I plan to open source it anyway. You can download it here.

@Calinou Calinou added this to the 4.0 milestone Jun 8, 2022
@Calinou Calinou changed the title [Godot 4] Tilemaps render sometimes incorrectly on android Vulkan: TileMaps sometimes render incorrectly on Android Jun 8, 2022
@Calinou
Copy link
Member

Calinou commented Jun 8, 2022

Can you reproduce this after switching to the OpenGL rendering backend in the Project Settings?

@doonv
Copy link
Author

doonv commented Jun 8, 2022

Can you reproduce this after switching to the OpenGL rendering backend in the Project Settings?

@Calinou, I changed rendering/driver/driver_name to opengl3. Exported the game to my phone via USB debugging. I got this error message:

Screenshot showing that the phone was unable to initialize the Video driver

No idea why it's talking about Vulkan when I'm not even using it in this case.

@Alexia-AT-Digitecnology
Copy link

Alexia-AT-Digitecnology commented Jun 24, 2022

Same error with 4.0-dev alpha 10, switched to GLES3 backend and appears same message in Android. I have a Redmi 9T and have GLES3 drivers on Adreno GPU. @Dan-Gamin did you solve this?

@Alexia-AT-Digitecnology

I'm seeing the source code and seems the gles3 backend is not compiled...

ERR_FAIL_NULL(native_window);

@Alexia-AT-Digitecnology

Did you have set in the buildserver the GLES3_ENABLED option in android export template @Calinou? Do you use Azure Pipelines to deploy the builds?

@akien-mga
Copy link
Member

akien-mga commented Jun 24, 2022

Vulkan is hardcoded here, GLES3 can't be used yet:

rendering_driver = "vulkan";

Edit: This was fixed by #69355.

@MiloThatch4
Copy link

I had the same issue. I was able to switch the renderer to gl_compatibility in Godot 4.0.beta10 and that fixes it.

@clayjohn clayjohn modified the milestones: 4.0, 4.x Feb 23, 2023
@giulong
Copy link

giulong commented Apr 10, 2023

had the same issue on Android export using Godot 4.0.2.stable. Disabling Use Texture Padding in the TileSet atlas properties as suggested in this comment by @Calinou fixes it.

@clayjohn
Copy link
Member

clayjohn commented Dec 6, 2023

This was likely fixed by #84852 Which will be part of 4.2.1. Once 4.2.1, please test again and confirm

@akien-mga akien-mga modified the milestones: 4.x, 4.3 Dec 7, 2023
@clayjohn
Copy link
Member

Can anyone reproduce this in 4.2.1 or later?

@clayjohn clayjohn modified the milestones: 4.3, 4.x Jul 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

7 participants