android - Can I increase performances using glscissor -


i'm working on 2d game android using opengl es 1.1 , know if idea good/bad/useless.

i have screen divided in 3 sections, used scissors avoid object overlapping 1 view other.

i understand low level implementation of scissor , since draws take big part of computation, i'm looking ideas speed up.

my current idea follows:

if put glscissor around each object before draw it, increase speed of application.

the idea if put glscissor, (center+/-sizetexture), opengl pipeline have less tests (since can discard 90~99% of surface glscissors.

so opengl experts, good, bad or have no impact ? , why?

it shouldn't have impact, imho. i'm not expert, thinking follows:

  • scissor test saves on gpu's fill rate (the amount of fragments/pixels hardware can put in framebuffer per second),
  • if put glscissor around each object, test won't cut off - same number of pixels rendered, no fill rate saved.

if want have rendering optimized, place start make sure you're doing optimal batching , reduce number of draw calls or complex state switches (texture switches).

of course correct approach optimizations try diagnose why rendering slow, above guess may or may not in particular situation.


Comments

Popular posts from this blog

400 Bad Request on Apache/PHP AddHandler wrapper -

Add email recipient to all new Trac tickets -

php - Change action and image src url's with jQuery -