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

Fix missing particles on android #270

Closed
wants to merge 3 commits into from
Closed

Conversation

GTcreyon
Copy link
Contributor

Description of changes

Fix particles not rendering on android due to GPU particles not being supported. Implements a compatibility class to help convert GPU particles to CPU particles at runtime - might need some work.

Issue(s)

Closes #269

Fix particles not rendering on android due to GPU particles not being supported. Implements a compatibility class to help convert GPU particles to CPU particles at runtime -  might need some work.
@GTcreyon GTcreyon added bug Something isn't working help wanted Extra attention is needed graphics godot-4-1 Issues caused by the conversion to 4.1 labels Sep 23, 2023
Base automatically changed from repo-godot-4-1 to master September 24, 2023 15:25
Copy link
Collaborator

@Koopa1018 Koopa1018 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still working on setting up my Android build toolchain, but I really like the engineering in fallback_particles.gd.

classes/particles/fallback_particles.gd Show resolved Hide resolved
@GTcreyon GTcreyon requested a review from Koopa1018 October 29, 2023 16:06
@GTcreyon
Copy link
Contributor Author

Should be all fixed now.

@GTcreyon
Copy link
Contributor Author

@Koopa1018 Could this get re-reviewed?

@Koopa1018
Copy link
Collaborator

D'oh, slipped my mind for a while! Looks like I got the entire build toolchain working before I forgot. Keystore usernames are still kicking my butt, but I've managed to build and test.

Turns out, this bug does not occur for me, at least not in debug builds. Particles show properly whether I'm on master or the fix branch.

Can you confirm whether debug vs. release has any effect for you? Because I might not actually be able to test this if not!

@GTcreyon
Copy link
Contributor Author

GTcreyon commented Jan 2, 2024

Turns out, this bug does not occur for me, at least not in debug builds. Particles show properly whether I'm on master or the fix branch.

To be clear... you are testing on Android, right? It's an Android-specific bug. It also might be specific to my phone hardware.

I will make sure to test with debug on master.

@Koopa1018
Copy link
Collaborator

Yeah, testing on a real Android phone (Motorola Moto G Play, not sure of the more specific details). Runs crazy slow (I blame debug builds), but it shows particles fine.

Copy link
Collaborator

@Koopa1018 Koopa1018 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You know what, I'm inclined to just approve this, on the basis that it doesn't seem to have broken anything on my end.

That said: @jaschutte @AidenBeresford @Kuma-Boo extra tests always welcome.

@GTcreyon
Copy link
Contributor Author

Hm. I think I might just close this for now. I'm not very fond of the solution I came up with. It's hacky and weird, and hacky-weird stuff tends to cause unexpected compatibility issues, which is exactly what this PR was trying to avoid.

Besides, the benefit from using GPU particles seems negligible. Moreover, platforms that can handle GPU particles probably don't actually need them, so using this hacky solution at the risk of breaking functionality just so the rich get richer seems unreasonable.

Godot has also progressed in this time. The issue may have resolved itself, or affected devices may no longer be supported at all. The issue no longer occurs on my device, for one.

Closing for now. If anyone can replicate this issue, let me know.

@GTcreyon GTcreyon closed this May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working godot-4-1 Issues caused by the conversion to 4.1 graphics help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Particles don't work on Android
2 participants