commit | c620985643df4de781808fb9dbaf73273ea4a49a | [log] [tgz] |
---|---|---|
author | jbauman@chromium.org <jbauman@chromium.org@736b8ea6-26fd-11df-bfd4-992fa37f6226> | Fri Oct 07 15:19:26 2011 +0000 |
committer | jbauman@chromium.org <jbauman@chromium.org@736b8ea6-26fd-11df-bfd4-992fa37f6226> | Fri Oct 07 15:19:26 2011 +0000 |
tree | 9db40e0f9a5f5d18c02ac6cf4905b9c4668d801a | |
parent | 50297fc19a65c58aa37080e696ad910d43581232 [diff] |
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 Review URL: http://codereview.appspot.com/5206042 git-svn-id: https://angleproject.googlecode.com/svn/trunk@786 736b8ea6-26fd-11df-bfd4-992fa37f6226