Jump to content

  • Log In with Google      Sign In   
  • Create Account


EVIL_ENT

Member Since 14 Aug 2010
Offline Last Active Sep 04 2013 01:10 PM

Posts I've Made

In Topic: Convert RGBA buffer to ARGB

06 August 2013 - 03:13 AM

You could also switch the channels of the image in GIMP or Pohotoshop. Probably won't become faster than that.


In Topic: GLSurfaceView lag/delay

31 July 2013 - 08:47 AM

Here's another lag video. The delay between OS (CyanogenMod) and app seems to be less than in your video.

Code:

https://dl.dropboxusercontent.com/u/54747914/share/MainActivity.java

App:

https://dl.dropboxusercontent.com/u/54747914/share/DelayTest.apk

 

You mentioned in your video that the second example would not have delay, but imho the black line is still way slower than your finger (and where did the touch position indicator go?). Also this app would be way easier to program with Canvas, because Paint supports antialiasing.

 

I can't check Stealh Bastard because I don't have the game, but it does not look very prone to delay.


In Topic: GLSurfaceView lag/delay

29 July 2013 - 02:02 PM

I noticed that even the default CyanogenMod UI has some delay, so it either is a hardware issue or OS issue.

Further I found two more threads which appear to be about the same problem, no solution through:

http://stackoverflow.com/questions/8173284/android-touch-input-delay-problems-for-a-timing-critical-game-is-there-a-delay

http://stackoverflow.com/questions/16660485/android-moving-a-view-with-ontouch-has-definite-lag

It is mentioned that there should be less lag on HTC devices, and I read somewhere else that iphones should have less lag, too.

 

EDIT:

Seems like not even the developers are sure what the reason is.

https://plus.google.com/100838276097451809262/posts/VDkV9XaJRGS

Anyway, unless we hack into android we can't change it.


In Topic: GLSurfaceView lag/delay

28 July 2013 - 03:20 PM

I noticed the same thing (input lag when using GLSurfaceView) on a samsung galaxy s2 with android 2.3.3 or something around that weird version number.

If you use the Canvas element for painting instead you have less input lag, so it might be possible that the other apps you checked which didn't have input lag were not using OpenGL.

I suspect it's either double buffering or maybe I caught the touch events at the wrong place.

Anyway, I still have to check if this is still the case on non-stock android roms.


In Topic: Gamedev Chat

11 July 2013 - 02:04 PM

There's an irc channel #gamedev on freenode (approximately 130 people currently and quite active)


PARTNERS