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

Re: [Public WebGL] For review: ANGLE_timer_query extension

On Thu, Apr 11, 2013 at 10:57 PM, Kenneth Russell <kbr@google.com> wrote:
The problem is that even in this form, the query's result would still
be retrieved with a polling API (getQueryParameter). This means that
the spec would still have to include all of the caveats like
getQueryParameter generating INVALID_OPERATION if the query hadn't
been processed.
Is that bad?
To address this issue, each query would need a callback, which would
receive the result as argument. There would be no way of retrieving
the query's result separately.
That's not really workable in usecases that Ben outlined. It's thousands of queries per frame. That's one important usecase, where you capture a whole hierarchy of timings and then drill down into what you want to know. Even if it wasn't seriously contest on performance, you can't "drill down" with callbacks, it's not usable.