[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Public WebGL] Issues with sharing resources across contexts
Ken: I'd hate to see the tradeoff go so far in the way of 'just make it faster for the simple cases'. The single worker populating textures is something I'd argue doesn't need any of this work, anyway - if the browsers weren't so horrible at decoding images (so move network and decode and upload off the main thread, etc) it largely wouldn't matter. It's something much better left in native browser code and as an implementation detail to apps. If the goal was just this decoding case, I'd say ignore any user-app level API changes and fix the browser code instead. Save the API changes for the interesting bits. Those interesting bits of off-thread access are all ones where either multiple workers or main/worker in conjunction are touching resources in non-trivial (read: dynamic) ways.