- Home /
Kindle Fire - Flickering UI on 2nd camera
On a Kindle Fire SD only, we have an issue where our user interfaces sporadically flicker (it appears to not be drawn during some frames). This issue does not apply to newer Kindle devices, nor any other Android devices or iOS devices.
The UI is built with NGUI using Transparent Unlit shaders, using a UI Camera that is orthographic with depth=1. The main camera is depth=0.
When flickering, any elements that lie underneath the Kindle's menu bar's semi-transparent bar are rendered correctly (and are updating correctly every frame).
Minor changes in the scene geometry seem to affect how often or how fast the flickering occurs, but simply adding or removing geo does not remove the problem; it just makes it happen at different times. Certain camera angles with certain combinations of characters tend to create the flicker more often than others, but we haven't found any correlations with the flicker.
The flickering does not happen consistently or at a consistent rate. Camera movement and animations do not seem to affect the flickering.
The flickering is not a performance stutter -- characters and scene animations are moving smoothly.
Shaders don't seem to be the issue - changing to Mobile/Diffuse without any transparency doesn't change the flickering problem.
We tried enabled vertical sync -- no change in the flickering.
Any suggestions on how to further investigate the problem?
You might try switching which version of OpenGL you are using. I had this issue with android when I was on OpenGL 2.0. When I switched over to 1.1 the problem went away. Now this solution will only work if you are not utilizing any shaders that use 2.0 features.
Answer by jamesl4 · Dec 08, 2012 at 04:09 AM
Switch to Open GL ES 1.x in the Player Settings. Not all 2.0 features are supported by 1.x, so some shaders may break. Specifically regarding NGUI: clip shaders will not work.
Credit to Adamcbrz (answered in a comment).
Your answer
Follow this Question
Related Questions
how do i make lights flicker 2 Answers
Shadow Z-fighting In Scene View 0 Answers
Realtime spotlight shadows constantly flicker 1 Answer
Windows standalone game window flickers when no keyboard input is detected. 0 Answers
object in Jump&Run-Game is flickering when hitting boundaries - how to avoid? 2 Answers