Stats of an Offscreen Canvas

Just to make sure with the experts:
There can’t be any obscure workaround to use the stats panel with an offscreen canvas, right?

If you mean used directly - nope, because it depends on DOM, which is not accessible within a worker.

If you mean just measuring the performance of rendering for offscreen canvas - can, before and after .render() should still be working just fine in the thread. You can send the resulting measurements to the main thread and then put it in a DOM element.


@mjurczyk Thanks for the quick reply. :bouquet:

There is also the structure that can give you some additional information about rendering, like triangle counts, geometry counts, etc.

1 Like