[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] For review: ANGLE_timer_query extension



On Fri, Apr 12, 2013 at 3:35 AM, Rémi Arnaud <jsremi@gmail.com> wrote:
What about an API like;

var counters = new gl.asyncPerfCountersSet();

counters.getTime()
...
counters.getTime()
...
counters.close(callback)
// getTime() does not do anything once counters is closed

//this is called once all results are available
callback=function(results)
{
... Do something with all those values

}
Unusable, queries all query timers created which is not desired. Also doesn't allow fine grained access to query just those timers from a frame you're interested in.