Replace the 'scan' function, which maps a WebGL object to anassociated integer id, with a 'name' property stored on the object. The linear scan was rather slow, and as the vector grew in size  games were slowing to a few fps.