GL timer queries (EXT_disjoint_timer_query versus EXT_disjoint_timer_query_webgl2)

322 views
Skip to first unread message

Robert Goulet

unread,
May 4, 2017, 12:15:04 PM5/4/17
to emscripten-discuss
Hi all,

has anyone managed to get GL disjoint timer queries to work in Chrome?

It appears that in Chrome I have the extension EXT_disjoint_timer_query_webgl2, while in Firefox I get the extension EXT_disjoint_timer_query. Also it seems we'd need to use regular GL query functions instead of GL query EXT functions when EXT_disjoint_timer_query_webgl2 is available, which Emscripten doesn't account for. I tried to hack Emscripten to enable EXT_disjoint_timer_query_webgl2 and use non-EXT GL query functions, but I still couldn't get them working in Chrome. However, EXT_disjoint_timer_query works fine in Firefox when using GL query EXT functions.

This is a bit of a mess, and most likely need to be cleaned up, but I wonder if anyone was able to use EXT_disjoint_timer_query_webgl2 at any point?

Thanks!

Jukka Jylänki

unread,
May 5, 2017, 3:47:33 AM5/5/17
to emscripte...@googlegroups.com
I have not yet had a chance to verify these extensions for Emscripten use. Can you find a non-Emscripten JavaScript example of EXT_disjoint_timer_query_webgl2 that works in Chrome? Perhaps that could be used as a starting point to base the implementation on.

--
You received this message because you are subscribed to the Google Groups "emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to emscripten-discuss+unsub...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Robert Goulet

unread,
May 5, 2017, 10:27:19 AM5/5/17
to emscripten-discuss
Nah couldn't find any working example, hence why I am asking here if anyone tried it before.

Tarek Sherif

unread,
May 24, 2017, 8:22:28 AM5/24/17
to emscripten-discuss
I'm using EXT_disjoint_timer_query_webgl2 for my WebGL 2 library's GPU timer: https://github.com/tsherif/picogl.js/blob/master/src/timer.js
Reply all
Reply to author
Forward
0 new messages