The screen is flickering in my game.

Problems with Canvas, OpenGL, etc...

The screen is flickering in my game.

Postby micke1977 » Mon Jan 17, 2011 7:05 pm

Hi.
I am making a 2D car game where the car is in the middle of the screen and when the car is moving the car is still in the middle and the background is moving instead. This causes some flickering in the Eclipse emulator. Have not tried it on a real phone yet. Is there any way to prevent this.
Regards Micke
micke1977
Developer
Developer
 
Posts: 25
Joined: Thu Nov 11, 2010 7:46 pm

Top

Re: The screen is flickering in my game.

Postby tttcowan » Tue Jan 18, 2011 3:21 pm

How many threads are you using? Are you using a drawq? If so check how that q is modified/assigned... I had problem where I was using the code

drawQInRenderer = drawQInPhysicsThread

^ The above causes all sorts of read write issues as bith threads point to the same object in ram.
tttcowan
Developer
Developer
 
Posts: 46
Joined: Mon Jul 19, 2010 11:08 pm

Re: The screen is flickering in my game.

Postby micke1977 » Sun Jan 30, 2011 7:42 pm

I have not used a drawQ, gonna look that up.
Thanks
micke1977
Developer
Developer
 
Posts: 25
Joined: Thu Nov 11, 2010 7:46 pm

Re: The screen is flickering in my game.

Postby freedom.limitless » Mon Feb 21, 2011 3:00 am

The Eclipse emulator is waaaaaay slower than a real phone so i suggest testing it on a real phone
freedom.limitless
Once Poster
Once Poster
 
Posts: 1
Joined: Mon Feb 21, 2011 2:53 am

Top

Return to Android 2D/3D Graphics - OpenGL Problems

Who is online

Users browsing this forum: No registered users and 2 guests