dave7y / android-bluez-ime

Automatically exported from code.google.com/p/android-bluez-ime
0 stars 0 forks source link

ICADE lag with mame4droid and staus bar hidden #158

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What version of BluezIME are you using?

1.16

What Android device do you have? What Android version?

ASUS tf101 with latest ics stock firware

What gamepad are you using?

ICADE

What steps will reproduce the problem?

Recently i've found this nice app (GestureControl 
http://forum.xda-developers.com/showthread.php?t=1535740) that let you hide 
status bar in ics.
Unfortunatly, hiding status bar seems to affect - somehow - bluez ime. When 
playing mame4droid with icade and status bar hidden, I`ve noticed frequent lags 
and sometimes inputs just do not register. All works well with status bar 
eneabled.
With ps3 sixaxis (wich connects automatically using stock drivers) al works 
fine, without lags with status bar hidden. 
I've reported the issue even to GestureControl author... hoping that one of you 
can fix it...

thank you for your attention

Original issue reported on code.google.com by Valke...@gmail.com on 10 Apr 2012 at 10:09

GoogleCodeExporter commented 9 years ago
The reason BluezIME shows that icon, is that Android will think it is inactive 
and kill the Bluez IME process after a little while. When it shows that icon, 
it is not killed.

I assume that if you hide it from the bar, there may be some process priority 
that changes as well, which cause you to get lags. I don't have any idea for 
how to change that.

Original comment by kenneth@hexad.dk on 10 Apr 2012 at 11:32

GoogleCodeExporter commented 9 years ago
noob question: is not possible to increase BluezIME process priority?

Original comment by Valke...@gmail.com on 10 Apr 2012 at 2:45

GoogleCodeExporter commented 9 years ago
It looks as if you can actually set the thread priority:
http://developer.android.com/reference/android/os/Process.html#setThreadPriority
(int, int)

Not sure if Android just accepts it though. Attached is a version that sets the 
reader thread priority to -20 (highest priority).

Original comment by kenneth@hexad.dk on 16 Apr 2012 at 8:27

Attachments:

GoogleCodeExporter commented 9 years ago
Thank you for trying but unfortunately it doesn`t fix the issue...

Original comment by Valke...@gmail.com on 17 Apr 2012 at 9:12

GoogleCodeExporter commented 9 years ago
I was hoping to test out this version against the stock version for some lag 
problems I was experiencing, but now that the store version is at 1.17 it makes 
a real A/B comparison somewhat difficult. Could this change possibly be made 
against the 1.17 build for comparison? Thank you.

Original comment by slink...@gmail.com on 10 Apr 2013 at 11:11

GoogleCodeExporter commented 9 years ago
The notification icon is displayed to keep Bluez-IME active (in the eyes of 
Android), so it gets fair priority and is not killed. It appears that hiding 
the status bar somehow removes these properties.

Setting the priority did not work, because Android generally ignores these 
hints and applies custom scheduling to avoid rouge apps from eating the battery.

I cannot fix it.

Original comment by kenneth@hexad.dk on 2 May 2013 at 9:28