You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Moving emscripten_webgl_* out of library_html5.js? #2999
I'm looking at using some of the emscripten_webgl_* calls in IMVU code ... but it imposes a pretty large size hit due to the JSEvents stuff.
All of the functions apart from emscripten_set_webglcontextlost_callback and emscripten_set_webglcontextrestored_callback could readily be moved to a separate library_webgl.js, except for the usage of JSEvents.findEventTarget in emscripten_webgl_create_context ... which could be duplicated or moved to some where else?
Duplicating JSEvents.findEventTarget for the purposes of performing dead code elimination does not sound good. The proper fix is to restructure library_html5.js to use the xxx_deps syntax more to allow breaking up the code there so that unused bits of JSEvents can be dead code eliminated. I can work on this.
For IMVU, I ended up just creating a custom imvugl library as I needed some other stuff as well ... so while I suggested this, I don't actually need it any longer.
Activity
kripken commentedon Nov 17, 2014
Fine with me. @juj?
juj commentedon Nov 17, 2014
Duplicating
JSEvents.findEventTargetfor the purposes of performing dead code elimination does not sound good. The proper fix is to restructurelibrary_html5.jsto use thexxx_depssyntax more to allow breaking up the code there so that unused bits ofJSEventscan be dead code eliminated. I can work on this.waywardmonkeys commentedon Nov 22, 2014
For IMVU, I ended up just creating a custom imvugl library as I needed some other stuff as well ... so while I suggested this, I don't actually need it any longer.
Refactor src/library_html5.js to break up the JSEvents object and use…
Move the malloc()ed JSEvents.xxxEvent struct pointers away from the J…
Move requestFullscreen and requestPointerlock calls away from the JSE…
Remove fill* functions from JSEvents. emscripten-core#2999.
Move isInternetExplorer() away from JSEvents. emscripten-core#2999.
Move JSEvents.registerOrRemoveHandler() away from JSEvents. emscripte…
Move getNodeName() away from JSEvents. emscripten-core#2999.
Move runDeferredCalls away from JSEvents. emscripten-core#2999.
Move .deferCall() away from JSEvents. emscripten-core#2999.
Move registerRemoveEventListeners and removeEventListenersRegistered …
Move canPerformEventHandlerRequests away from JSEvents. emscripten-co…
Move removeDeferredCalls() away from JSEvents. emscripten-core#2999.
Remove references to the JSEvents object. emscripten-core#2999.
Remove the JSEvents object altogether. emscripten-core#2999.