Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2)

Issue 5210042: Iterate directly over uniforms when applying them (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 1 month ago by John Bauman
Modified:
15 years, 1 month ago
Reviewers:
dgkoch, nicolas
CC:
angleproject-review_googlegroups.com
Base URL:
https://angleproject.googlecode.com/svn/trunk
Visibility:
Public.

Description

Iterate directly over uniforms when applying them Directly iterate over uniforms, not over uniform locations, so we don't waste time looking at locations in the middle of arrays. Gets about 1 fps on a NaCl benchmark. BUG= TEST=webgl conformance tests Committed: http://code.google.com/p/angleproject/source/detail?r=792

Patch Set 1 #

Total comments: 1

Patch Set 2 : remove unnecessary variable #

Unified diffs Side-by-side diffs Delta from patch set Stats (+47 lines, -84 lines) Patch
M src/libGLESv2/Program.h View 1 chunk +15 lines, -15 lines 0 comments Download
M src/libGLESv2/Program.cpp View 1 29 chunks +32 lines, -69 lines 0 comments Download

Messages

Total messages: 6
John Bauman
15 years, 1 month ago (2011-10-06 12:59:54 UTC) #1
nicolas
So you're getting measurably better performance from applying the uniforms in a different order? Are ...
15 years, 1 month ago (2011-10-06 13:28:14 UTC) #2
John Bauman
On 2011/10/06 13:28:14, nicolas wrote: > So you're getting measurably better performance from applying the ...
15 years, 1 month ago (2011-10-06 13:30:36 UTC) #3
nicolas
Ok, I've verified that it's functionally equivalent. The patch makes things more elegant and faster ...
15 years, 1 month ago (2011-10-06 15:40:59 UTC) #4
dgkoch
One minor issue then LGTM. http://codereview.appspot.com/5210042/diff/1/src/libGLESv2/Program.cpp File src/libGLESv2/Program.cpp (right): http://codereview.appspot.com/5210042/diff/1/src/libGLESv2/Program.cpp#newcode923 src/libGLESv2/Program.cpp:923: unsigned int numUniforms = ...
15 years, 1 month ago (2011-10-07 04:27:59 UTC) #5
John Bauman
15 years, 1 month ago (2011-10-07 15:43:34 UTC) #6
On 2011/10/07 04:27:59, dgkoch wrote:
> One minor issue then LGTM.
> 
> http://codereview.appspot.com/5210042/diff/1/src/libGLESv2/Program.cpp
> File src/libGLESv2/Program.cpp (right):
> 
>
http://codereview.appspot.com/5210042/diff/1/src/libGLESv2/Program.cpp#newcod...
> src/libGLESv2/Program.cpp:923: unsigned int numUniforms =
mUniformIndex.size();
> I believe numUniforms is unused now?
Oops, thought I already removed that. Fixed.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b