I’ve managed to get my game building for Android, but all the text (which is kinda vital in a visual novel) flickers as it’s being drawn as though it’s not getting drawn some frames. Quite often, it simply isn’t drawn at all, leaving blank buttons (with backgrounds) but no text on them. Sometimes, it writes garbage instead, confined to a tiny area of the screen, almost as though where it’s able to draw is being changed.
I’ve had it up and running on the debugger too, but it doesn’t seem to crash or throw any errors. All works perfectly, of course on iOS. Any thoughts/ideas on where I can go with this? Any known issues around using the GUI stuff on Android?
Yes please, the repro case. I strongly encourage you to use the bugreporter (help->report a bug) at that’s the way we process and fix bugs.
Emailed and PM’ed bugs often get lots and not fixed
I’ve submitted my project. The case number is 391965. I tried to strip it down to a smaller example, but as soon as I started stripping stuff away, the bug stopped happening. So I’m afraid I had to submit the whole project. On the plus side, the corruption/vanishing/flickering does happen frequently, so it shouldn’t be difficult to reproduce.
I have the same issue after upgrading to 3.2. Before i had no problems on iphone or android. But now i have lots of flickering graphics on my android build. Both objects and text on gui.labels and gui.buttons for example.
I have tried different shaders, but that doesn’t seem to matter. If i use opengl 1.x it works, but with opengl 2 i get lots of flickering.
Thanks, Wozik. If I get time, I will try again at narrowing it down, but every time I removed a significant chunk of the code, the bug stopped happening.
Thanks for the additional info, Joakim. I’ll take a look and see if the OpenGL version affects anything for me too.
No, I’ve built both my games with the graphics version set to OpenGL 1.1 and I still get all the same flickering, vanishing and text corruption, so it’s definitely not tied to the OpenGL version at all.
I’m not sure how much help this is, but I’ve worked around the problem by changing the font type from unicode to ascii default, disabling 2.x font placement and disabling anti-aliasing. It’s probably not all three settings, but it could be one or a combination of them. So perhaps that will narrow down the nature of the problem. Until I get (a lot) more time to play with it, I can’t test all the different permutations to see which setting it is.
Then maybe i can help out a little. We are in the middle of launching our beta so i don’t have that much time for testing either at the moment. But my font settings are disabled 2.x, ascii default and light antialiasing. I tried to disable the antialiasing but still have flickering text. Maybe we are not having the same problem.
I think you might be right about these being different problems, Joakim. It seems improbable that there would be two separate issues both causing text to flicker, disappear and be garbled, but since your problem goes away with GL 1.1 (and mine doesn’t) and mine goes away with different font settings (and yours doesn’t) I guess it’s entirely possible that there are two unrelated bugs with very similar symptoms.
Actually, I still have some problems with this. It seems to happen only when my android app is going to background then to foreground again, though it usually takes a couple of “foreground to background to foreground” for the text to be messed up. My text doesn’t flicker, but the other symptoms are here: text on GUI.Buttons fading to full alpha over the length of the screen, some buttons written with an “alien font”…