Author Topic: Repeating texture performance  (Read 5543 times)

Offline kkl

  • float
  • ****
  • Posts: 291
    • View Profile
Re: Repeating texture performance
« Reply #15 on: May 14, 2014, 01:39:07 pm »
I resized the objects so it doesn't fill up the screen and it gets alot smoother! But it gets abit slowdown occasionally when I scroll homescreen really fast for some time. At least the issue goes away nw. Wonder how other live wallpaper does so well despite of this issue.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Repeating texture performance
« Reply #16 on: May 14, 2014, 08:53:09 pm »
...by using less fillrate?

Offline kkl

  • float
  • ****
  • Posts: 291
    • View Profile
Re: Repeating texture performance
« Reply #17 on: May 15, 2014, 03:44:16 am »
Do you have any recommendation to reduce the fillrate other than reducing the texture size?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Repeating texture performance
« Reply #18 on: May 15, 2014, 10:47:22 am »
Texture size has almost no impact on fillrate. Fillrate simply depends on how much you draw on the screen, how much overlap you have and how much of this comes from overlapping transparent polygons.

Offline kkl

  • float
  • ****
  • Posts: 291
    • View Profile
Re: Repeating texture performance
« Reply #19 on: June 19, 2014, 05:36:52 pm »
Hi Egon, sry having to bring this up again. I checked from forum and many people are saying that transparent object are the most expensive process for fillrate, but I don't quite sure how transparent object would affect the fillrate, in technical speaking. Hope I can hear more about it from you.

From what i can understand, the more transparent part fills up the screen, the more hardware cost it would be. Is it caused by the z buffer where it checks the z buffer and rewrite again, or something else?

Say, if I put a all transparent objects at background (they takes almost more than half of the screen), and leave the opaque 3D objects at front, does it help in fillrate?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Repeating texture performance
« Reply #20 on: June 19, 2014, 06:55:08 pm »
Mobile gpus are optimized for reducing overdraw of opaque polygons. They do this by using an approach called tile based rendering/deferred rendering. If you want to know more about this approach, just google for it or search the forum. IIRC, i briefly explained the idea once.
This doesn't help for transparent polygons and they require a framebuffer read per pixel in addition. Both things combined roughly explain the higher fill rate need of transparent polygons. If that's any better in the situation that you described depends on the gpus and maybe the drivers. I wouldn't expect too much from it.
« Last Edit: August 12, 2014, 09:58:35 am by EgonOlsen »

Offline kkl

  • float
  • ****
  • Posts: 291
    • View Profile
Re: Repeating texture performance
« Reply #21 on: August 12, 2014, 09:15:17 am »
Hi Egon,

Thanks for the idea. I spent a good amount of time to study the deferred rendering. It seems like it will skip drawing/processing the polygon that is located behind any opaque polygon to improve performance, CMIIW. What if the polygon is partial opaque and transparent (say, an object with opaque at the center and a small portion of transparent area around its sides)? Does it defered if most area of texture is opaque or it simple treats it as all transparent? 

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Repeating texture performance
« Reply #22 on: August 12, 2014, 10:00:03 am »
My guess is that it treats them as transparent.