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

Issue 5206042: Cache the current program pointer (Closed)

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

Description

Cache the current program pointer Hash table lookups are somewhat expensive, so cache a pointer to the current program for on a context. This gains about 3 fps (from 58) on a Native Client demo. BUG= TEST=webgl conformance tests Committed: http://code.google.com/p/angleproject/source/detail?r=786

Patch Set 1 #

Total comments: 2

Patch Set 2 : Optimize a bit more #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -1 line) Patch
M src/libGLESv2/Context.h View 1 chunk +1 line, -0 lines 0 comments Download
M src/libGLESv2/Context.cpp View 1 4 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 5
John Bauman
13 years, 11 months ago (2011-10-06 12:55:33 UTC) #1
nicolas
Looks ok to me, aside from a potential missed optimization. We actually had a patch ...
13 years, 11 months ago (2011-10-06 13:22:57 UTC) #2
John Bauman
On 2011/10/06 13:22:57, nicolas wrote: > Looks ok to me, aside from a potential missed ...
13 years, 11 months ago (2011-10-06 13:28:24 UTC) #3
John Bauman
http://codereview.appspot.com/5206042/diff/1/src/libGLESv2/Context.cpp File src/libGLESv2/Context.cpp (right): http://codereview.appspot.com/5206042/diff/1/src/libGLESv2/Context.cpp#newcode1040 src/libGLESv2/Context.cpp:1040: mCachedCurrentProgram = NULL; On 2011/10/06 13:22:58, nicolas wrote: > ...
13 years, 11 months ago (2011-10-06 13:28:33 UTC) #4
dgkoch
13 years, 11 months ago (2011-10-07 04:16:31 UTC) #5
LGTM
Sign in to reply to this message.

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