DescriptionAvoid resending lots of D3D state
This change uses trivial caching to determines whether to reset shaders, the viewport, and the currently set vertex declaration. It also caches the render target desc to avoid rereading that. Serial numbers are added to vertex and index buffers, so resending those can be avoided.
These changes can give a big speedup (30% has been measured) on simple content, particularly when used directly or through pepper/native client.
BUG=
TEST=bunch of pages using webgl
Committed: http://code.google.com/p/angleproject/source/detail?r=743
Patch Set 1 #Patch Set 2 : fix vertex decls #
Total comments: 4
MessagesTotal messages: 4
|