Author Topic: HTC one FPS  (Read 31159 times)

Offline mikethebigo

  • byte
  • *
  • Posts: 16
    • View Profile
Re: HTC one FPS
« Reply #15 on: May 19, 2013, 12:57:33 PM »
OK, done.  Hopefully its what you need :)

Offline littleguy

  • Moderator
  • double
  • *****
  • Posts: 1945
    • View Profile
Re: HTC one FPS
« Reply #16 on: May 19, 2013, 01:21:52 PM »
Looks like maybe the selection code didn't work.  Should be picking Config[13]:
Code: [Select]
190 V/GameSurface(20383): Starting up OpenGL ES 2.0
191 I/GameSurface(20383): Config[0]: BS16 R5 G6 B5 A0 D16 S0 AM0 CC|NONE RT71 NR0 NVT0 SB0 Sa0 ST1445
192 I/GameSurface(20383): Config[1]: BS16 R5 G6 B5 A0 D24 S8 AM0 CC|NONE RT71 NR0 NVT0 SB0 Sa0 ST1445
193 I/GameSurface(20383): Config[2]: BS16 R5 G6 B5 A0 D16 S0 AM0 CC12369 RT71 NR0 NVT0 SB1 Sa2 ST1445
194 I/GameSurface(20383): Config[3]: BS16 R5 G6 B5 A0 D24 S8 AM0 CC12369 RT71 NR0 NVT0 SB1 Sa2 ST1445
195 I/GameSurface(20383): Config[4]: BS16 R5 G6 B5 A0 D16 S0 AM0 CC12369 RT71 NR0 NVT0 SB1 Sa4 ST1445
196 I/GameSurface(20383): Config[5]: BS16 R5 G6 B5 A0 D24 S8 AM0 CC12369 RT71 NR0 NVT0 SB1 Sa4 ST1445
197 I/GameSurface(20383): Config[6]: BS24 R8 G8 B8 A0 D16 S0 AM0 CC|NONE RT71 NR0 NVT0 SB0 Sa0 ST1413
198 I/GameSurface(20383): Config[7]: BS24 R8 G8 B8 A0 D24 S8 AM0 CC|NONE RT71 NR0 NVT0 SB0 Sa0 ST1413
199 I/GameSurface(20383): Config[8]: BS24 R8 G8 B8 A0 D16 S0 AM0 CC12369 RT71 NR0 NVT0 SB1 Sa2 ST1413
200 I/GameSurface(20383): Config[9]: BS24 R8 G8 B8 A0 D24 S8 AM0 CC12369 RT71 NR0 NVT0 SB1 Sa2 ST1413
201 I/GameSurface(20383): Config[10]: BS24 R8 G8 B8 A0 D16 S0 AM0 CC12369 RT71 NR0 NVT0 SB1 Sa4 ST1413
202 I/GameSurface(20383): Config[11]: BS24 R8 G8 B8 A0 D24 S8 AM0 CC12369 RT71 NR0 NVT0 SB1 Sa4 ST1413
203 I/GameSurface(20383): Config[12]: BS32 R8 G8 B8 A8 D16 S0 AM0 CC|NONE RT71 NR0 NVT0 SB0 Sa0 ST1509
204 I/GameSurface(20383): Config[13]: BS32 R8 G8 B8 A8 D24 S8 AM0 CC|NONE RT71 NR0 NVT0 SB0 Sa0 ST1509
205 I/GameSurface(20383): Config[14]: BS32 R8 G8 B8 A8 D16 S0 AM0 CC12369 RT71 NR0 NVT0 SB1 Sa2 ST1509
206 I/GameSurface(20383): Config[15]: BS32 R8 G8 B8 A8 D24 S8 AM0 CC12369 RT71 NR0 NVT0 SB1 Sa2 ST1509
207 I/GameSurface(20383): Config[16]: BS32 R8 G8 B8 A8 D16 S0 AM0 CC12369 RT71 NR0 NVT0 SB1 Sa4 ST1509
208 I/GameSurface(20383): Config[17]: BS32 R8 G8 B8 A8 D24 S8 AM0 CC12369 RT71 NR0 NVT0 SB1 Sa4 ST1509
209 I/GameSurface(20383): Using Config[0]
2012 Nexus 7, rooted stock Lollipop
Samsung Galaxy Victory, rooted stock Jelly Bean
Xperia PLAY, stock Gingerbread
OUYA, retail version

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3495
  • Developer
    • View Profile
    • PaulsCode.Com
Re: HTC one FPS
« Reply #17 on: May 19, 2013, 04:22:24 PM »
Weird.  Looks like it should work.  Let me do a clean build.
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3495
  • Developer
    • View Profile
    • PaulsCode.Com
Re: HTC one FPS
« Reply #18 on: May 19, 2013, 04:50:52 PM »
Oops, I found the problem (simple logic error).

Try this build.  Also do the above steps again to send another report, so I can make sure I got the picker right this time.
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline mikethebigo

  • byte
  • *
  • Posts: 16
    • View Profile
Re: HTC one FPS
« Reply #19 on: May 19, 2013, 05:15:23 PM »
Ok, done!

Unfortunately still no noticeable difference.

I don't know if it helps but here is some additional info:
- The lag is not just visual, the audio also stutters quite significantly, slowing down or hopping in certain spots, especially in games like zelda and super smash brothers.
- The lag actually seems to improve when I decrease the game speed to 70-80% however obviously everything is moving slower.
- The lag is for some reason worse on same games than others, zelda in particular has a pretty rough time vs super mario which isn't nearly as bad.
- The controls still work fine.

Offline Paul

  • Administrator
  • double
  • *****
  • Posts: 3495
  • Developer
    • View Profile
    • PaulsCode.Com
Re: HTC one FPS
« Reply #20 on: May 19, 2013, 06:11:59 PM »
Oh, well.  At least it picked the config I wanted it to:

Code: [Select]
172 I/GameSurface(29976): Config[0]: BS16 R5 G6 B5 A0 D16 S0 AM0 CC|NONE RT71 NR0 NVT0 SB0 Sa0 ST1445
173 I/GameSurface(29976): Config[1]: BS16 R5 G6 B5 A0 D24 S8 AM0 CC|NONE RT71 NR0 NVT0 SB0 Sa0 ST1445
174 I/GameSurface(29976): Config[2]: BS16 R5 G6 B5 A0 D16 S0 AM0 CC12369 RT71 NR0 NVT0 SB1 Sa2 ST1445
175 I/GameSurface(29976): Config[3]: BS16 R5 G6 B5 A0 D24 S8 AM0 CC12369 RT71 NR0 NVT0 SB1 Sa2 ST1445
176 I/GameSurface(29976): Config[4]: BS16 R5 G6 B5 A0 D16 S0 AM0 CC12369 RT71 NR0 NVT0 SB1 Sa4 ST1445
177 I/GameSurface(29976): Config[5]: BS16 R5 G6 B5 A0 D24 S8 AM0 CC12369 RT71 NR0 NVT0 SB1 Sa4 ST1445
178 I/GameSurface(29976): Config[6]: BS24 R8 G8 B8 A0 D16 S0 AM0 CC|NONE RT71 NR0 NVT0 SB0 Sa0 ST1413
179 I/GameSurface(29976): Config[7]: BS24 R8 G8 B8 A0 D24 S8 AM0 CC|NONE RT71 NR0 NVT0 SB0 Sa0 ST1413
180 I/GameSurface(29976): Config[8]: BS24 R8 G8 B8 A0 D16 S0 AM0 CC12369 RT71 NR0 NVT0 SB1 Sa2 ST1413
181 I/GameSurface(29976): Config[9]: BS24 R8 G8 B8 A0 D24 S8 AM0 CC12369 RT71 NR0 NVT0 SB1 Sa2 ST1413
182 I/GameSurface(29976): Config[10]: BS24 R8 G8 B8 A0 D16 S0 AM0 CC12369 RT71 NR0 NVT0 SB1 Sa4 ST1413
183 I/GameSurface(29976): Config[11]: BS24 R8 G8 B8 A0 D24 S8 AM0 CC12369 RT71 NR0 NVT0 SB1 Sa4 ST1413
184 I/GameSurface(29976): Config[12]: BS32 R8 G8 B8 A8 D16 S0 AM0 CC|NONE RT71 NR0 NVT0 SB0 Sa0 ST1509
185 I/GameSurface(29976): Config[13]: BS32 R8 G8 B8 A8 D24 S8 AM0 CC|NONE RT71 NR0 NVT0 SB0 Sa0 ST1509
186 I/GameSurface(29976): Config[14]: BS32 R8 G8 B8 A8 D16 S0 AM0 CC12369 RT71 NR0 NVT0 SB1 Sa2 ST1509
187 I/GameSurface(29976): Config[15]: BS32 R8 G8 B8 A8 D24 S8 AM0 CC12369 RT71 NR0 NVT0 SB1 Sa2 ST1509
188 I/GameSurface(29976): Config[16]: BS32 R8 G8 B8 A8 D16 S0 AM0 CC12369 RT71 NR0 NVT0 SB1 Sa4 ST1509
189 I/GameSurface(29976): Config[17]: BS32 R8 G8 B8 A8 D24 S8 AM0 CC12369 RT71 NR0 NVT0 SB1 Sa4 ST1509
190 I/GameSurface(29976): Using Config[13]

@littleguy, what do you think we should do next, try a few other configs to see if any of them are better, or do you think we are probably on the wrong track?
Device: Samsung Galaxy Nexus i515
CPU: TI OMAP4460, 1.2 GHz (dual core, ARM Cortex-A9)
GPU: PowerVR SGX540, 307 MHz
RAM: 1 GB
Resolution: 720 x 1280
Rom: omni-4.4.4-20141014-toro-FML KitKat 4.4.4, rooted

Device: Eee PC 1015PEM
CPU: Intel Atom N550, 1.5 GHz (dual core, x86)
GPU: Intel GMA 3150, 200 MHz (dual core)
RAM: 2GB
Resolution: 1024 x 600
Rom: android-x86-4.3-20130725 Jelly Bean 4.3, rooted

Offline littleguy

  • Moderator
  • double
  • *****
  • Posts: 1945
    • View Profile
Re: HTC one FPS
« Reply #21 on: May 19, 2013, 06:15:58 PM »
@mikethebigo  Thanks for the detailed feedback.  If you disable the video plugin and resume a game that has a lot of audio stuttering, does the audio get better?  And vice versa, if you disable the audio plugin, does the video get an better?

@paul  Well we could continue down this path, running it all the way to ground, checking stencil buffer enabled/disabled and some of the others (I forget what all the codes refer to)... but that may be a lot of work for no gain.  I'll have to think some more...
2012 Nexus 7, rooted stock Lollipop
Samsung Galaxy Victory, rooted stock Jelly Bean
Xperia PLAY, stock Gingerbread
OUYA, retail version

Offline littleguy

  • Moderator
  • double
  • *****
  • Posts: 1945
    • View Profile
Re: HTC one FPS
« Reply #22 on: May 19, 2013, 06:45:40 PM »
@Paul - Remind me again, does this lag issue affect all Adreno 320 devices, or just the HTC One?  How about Adreno 305?  Which version/carrier of the GS3 shows the lag?

I'm downloading some Adreno dev literature, going to scan to see if anything obvious jumps out at me....
2012 Nexus 7, rooted stock Lollipop
Samsung Galaxy Victory, rooted stock Jelly Bean
Xperia PLAY, stock Gingerbread
OUYA, retail version

Offline xperia64

  • Moderator
  • double
  • *****
  • Posts: 591
    • View Profile
    • My Apps
Re: HTC one FPS
« Reply #23 on: May 19, 2013, 06:57:55 PM »
@Paul - Remind me again, does this lag issue affect all Adreno 320 devices, or just the HTC One?  How about Adreno 305?  Which version/carrier of the GS3 shows the lag?

I'm downloading some Adreno dev literature, going to scan to see if anything obvious jumps out at me....

I'm pretty sure its most American S3's so sprint, Verizon etc. The chips in the American ones have to be different because of the different 3G/4G frequencies or something Those S3's have Adreno 225's. I can verify that the sprint S3 at least with an Adreno 225 is slower than my S2 with a mali 400MP

Offline Garrett

  • byte
  • *
  • Posts: 13
    • View Profile
Re: HTC one FPS
« Reply #24 on: May 19, 2013, 07:08:18 PM »
I have the T-Mo Galaxy S4, it uses the Adreno 320. Most games I've tried are too laggy to play.

Offline xperia64

  • Moderator
  • double
  • *****
  • Posts: 591
    • View Profile
    • My Apps
Re: HTC one FPS
« Reply #25 on: May 19, 2013, 07:19:01 PM »
Random thought: I know its probably due to the gfx components, but on the off chance its the dynarec, someone switch plugins->R4300 emulator to cached interpreter

Offline Garrett

  • byte
  • *
  • Posts: 13
    • View Profile
Re: HTC one FPS
« Reply #26 on: May 19, 2013, 07:23:18 PM »
dropped my fps by about 8 when I did that.

One thing I just came across though is that if I hold my finger on the screen my fps increases
Touch input is disabled - I'm using a ps3 sixaxis controller.

I can actually get ~25-30 fps in mario64 with frame-skipping set to never skip

Edit:
Not touching screen ~17fps
when touching screen 27-32
« Last Edit: May 19, 2013, 07:26:07 PM by Garrett »

Offline littleguy

  • Moderator
  • double
  • *****
  • Posts: 1945
    • View Profile
Re: HTC one FPS
« Reply #27 on: May 19, 2013, 07:24:45 PM »
So is it safe to say we've narrowed this down to Adreno 320/225?  All devices with these chipsets?
2012 Nexus 7, rooted stock Lollipop
Samsung Galaxy Victory, rooted stock Jelly Bean
Xperia PLAY, stock Gingerbread
OUYA, retail version

Offline littleguy

  • Moderator
  • double
  • *****
  • Posts: 1945
    • View Profile
Re: HTC one FPS
« Reply #28 on: May 19, 2013, 07:29:07 PM »
One thing I just came across though is that if I hold my finger on the screen my fps increases
Touch input is disabled - I'm using a ps3 sixaxis controller.
....
Not touching screen ~17fps
when touching screen 27-32

Wow, that's really helpful, that indicates something entirely different than video.  Two possibilities come to mind immediately - weirdness with the input plugin or weirdness with Android event handling.

What happens when you disable the input plugin (you won't be able to control anything, but does your FPS change)?
2012 Nexus 7, rooted stock Lollipop
Samsung Galaxy Victory, rooted stock Jelly Bean
Xperia PLAY, stock Gingerbread
OUYA, retail version

Offline xperia64

  • Moderator
  • double
  • *****
  • Posts: 591
    • View Profile
    • My Apps
Re: HTC one FPS
« Reply #29 on: May 19, 2013, 07:35:55 PM »
It could also be something with the refresh rate e.g. refreshing more when the screen is being touched. I know that retroarch recommends tapping on the screen when it calculates FPS