iphone - OpenGL ES: Is it more efficient to turn lights off and on, or just assign emissivity to my particles? -


i'm working on android, , i'm new graphics.

i have particles don't want affected lighting. right now, disabling lighting right before draw particles (gl.gldisable(gl10.gl_lighting)), , enabling them again once they're drawn, , continue drawing rest of scene.

would more efficient leave lighting on, , set particles emissive? (by calling glmaterialfv( gl_front_and_back, gl_emission, white) right before drawing particles)

there's no easy answer here, i'm afraid. anon commenter says, you're best off measuring yourself. bear in mind results hardware-dependent. disabling lighting less work hardware, state change may disrupt processing pipeline such saving negated.


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -