Skip to content

Moving emscripten_webgl_* out of library_html5.js? #2999

Closed

Description

@waywardmonkeys

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?

Activity

  1. kripken commented on Nov 17, 2014

    @kripken
    Member

    Fine with me. @juj?

  2. juj commented on Nov 17, 2014

    @juj
    Collaborator

    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.

  3. self-assigned this
    on Nov 17, 2014
  4. waywardmonkeys commented on Nov 22, 2014

    @waywardmonkeys
    ContributorAuthor

    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.

  5. added 14 commits that reference this issue on Apr 1, 2015
    0d298c5
    cb1fe63
    92c17b7
    5449071
    6c33c07
    0748a30
    5322b12
    dac9b56
    16cf305
    0aea6bf
    8d9974a
    83b7ade
    13bd9a3
    b1d1f4e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions