Hello, I'm porting a game from iOS to Android. Going very well, just a small issue with the touch inputs; they feel quite sluggish and slow to respond. Someone mentioned about having different threads for UI and for touches. I'm not sure (still new to Android). What's the best way to go about things on Android, in terms of threading? My game is fast to update, typically 60FPS etc.
Hi, I use 2 threads : 1 for rendering (using GLView callback onDrawFrame), 1 for updating the game (using a new Thread()). Touch inputs are received in the Activity onTouchEvent callback (which I think runs on UI thread) where I simply store them. Then inputs are processed in the next game update loop.