ludei / Construct-2-plugin

http://www.ludei.com
41 stars 35 forks source link

Terrible Flickering issue with Google Play Services only on Lollipop #64

Open MichaelVParent opened 9 years ago

MichaelVParent commented 9 years ago

Hi,

My game works fine with opeing Google Play services on android devices, that is, EXCEPT for new devices that run on Lollipop.. for these newest devices Google Play Services opens, but the background green color flickers terribly.

Any ideas?

Thanks, Mike

MichaelVParent commented 9 years ago

It's been nine days since I reported this issue and no response. Is anyone looking into this? My client is afraid to release the game because with this current flickering bug he's afraid to trigger epileptic seizures in people who are on Lollipop Android devices. He tested several other games on the same device that open and use Google Play Services and none of them cause the flickering. Also, On my android with an older version of Android OS there is no flicker problem, so it seems specific to Cocoonjs+Lollipop.

Thanks, Mike

MichaelVParent commented 9 years ago

I should add I had my client test other published games by big publishers on the same device that open Google Play services and none of them have the flickering issue, so its definitely not an issue specific to the phone or OS..I'm guessing there's something special to Lollipop that cocoonjs's Google Play services code is not yet compatible with.

ArcadEd commented 9 years ago

I don't think it's just a lollipop thing, Hungry Hal has always done it and it was released before 5.0. It looks pretty bad, but could never figure out a way around it. It only seemed to happen if there was movement of other objects on the screen. If the screen was full static when the call was made, it doesn't do it. At least in my experience.

MichaelVParent commented 9 years ago

Hmm.. well my game never creates this problem on my older android device... only my clients device, which is newer and uses Lollipop... so clearly there's something that makes some Android devices more sensitive to it. But thanks for the hint. I'll look into setting timescale to zero before opening game-center so see if that solves the issue... but of course this is a hacky work-around at best (if it will work) and the real issue needs to be solved. Thanks ArcadEd

MichaelVParent commented 9 years ago

Hi Again,

I set timescale to 0 before opening Google Play services so there's no movement on screen at all in he game but the flicker is still there. Where are you Ludei?

Here's a video of the Flickering: (This was recorded before the build that sets the timescale to zero, but the flickering is the same)

https://dl.dropboxusercontent.com/u/61721248/IMG_4009.MOV

Thanks, Mike

LibelulaV commented 9 years ago

Hello,

After testing during a while, I still can't reproduce the flickering on our devices. If possible, can you please include me as a tester inside your app at google play?

Regards.

MichaelVParent commented 9 years ago

It doesn't flicker on my device either, BUT does on my clients device and does for ArcadEd's device with his games as well. So, this is a problem for certain versions of Android OS? It's not a hardware issue, because, as I said, other commercial games on the same devices do NOT flicker, where as the once compiled with cocoonjs DO have the flicker.

If you can't get the flicker to happen, its because it will NOT happen on that particular Device Android/OS combination.

LibelulaV commented 9 years ago

The flickering can be caused by so many things. That is why I need to reproduce it. Can you please at least provide a device log?

MichaelVParent commented 9 years ago

I don't own a device on which the games flicker... ArcadEd does, maybe he can do so... the device that my client has is a One And One, @ArcadEd, can you also tell LibelulaV what devices you know of that have the flicker issue with Cocoonjs games and what Android OS they are running?

Thanks, Mike

ArcadEd commented 9 years ago

My device is a Nexus 7 running 5.0. I have a few others I can check it on, but I am out of town and won't be back until Monday.

Lucidical commented 9 years ago

The flickering is possible caused by the transition of the "login" notice. I had similiar problems. Just try to delay the Google Play popup with a "Waiting" action. (Wait until the transition is over) Also try not to use fullscreen effects while open GooglePlay/Game Center. I have heard the root of this problem is the "frame buffer" but Iam not sure. I only have this problem with my Samsung S5 with Android 5. Everything is fine on my S3 with Android 4.4.4 .

MichaelVParent commented 9 years ago

Hi Lucidical. The flicker percists after the transition.. And how can you make the game wait until after "the transition" Before showing google play? I don't understand. What would those event and actions look like?

What do you mean by fullscreen effects?

Thanks, Mike

Lucidical commented 9 years ago

Hey Mike, it depends on your project but basically you can set a "wait" with the time frame of your transition. The following example shows the event triggered in my project after the layout(and game) starts the first time and calls the login function. Without the 0.1 second wait time flickering will occur. login This fixed the problem in my project. achievement I also implemented a wait time when opening the leaderboard or achievement.

With fullscreen effect I mean effects on layers/layouts. This also can cause flickering.

Best regards.