Actually, juj is working on an experiment with proxying now, and in discussion on irc it seems like his approach might end up able to convert the WebGL proxying code into a normal JS library, in which case it would be included only when needed.
On Wed, Aug 31, 2016 at 7:21 PM, awt <[email protected]> wrote: > For my case, I'm only using Canvas2D calls to proxy images over to the > main thread so it will help to > > 1) Bring down the code size and > 2) Improve startup time > > If we can remove WebGL proxying when it is not needed. > > On Wednesday, August 31, 2016 at 12:59:13 AM UTC+8, Alon Zakai wrote: >> >> No, there isn't an option for that currently. I'd be ok with adding one >> if it's useful. >> >> On Tue, Aug 30, 2016 at 3:34 AM, awt <[email protected]> wrote: >> >>> Hi, >>> >>> I am currently only using Canvas2D APIs on my WebWorker but I notice >>> that the WebGLClient code is added as well. Is there a way to use the proxy >>> mechanism in ProxyWorker for Canvas2D and not include the code for WebGL? >>> Thanks. >>> >>> -- >>> 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 [email protected]. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > 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 [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
