i-rinat / freshplayerplugin

ppapi2npapi compatibility layer
MIT License
727 stars 52 forks source link

OpenGL|ES 2 buffering (GPU buffering) #332

Open i-rinat opened 8 years ago

i-rinat commented 8 years ago

At the moment, GL context is set and reset for every GL call. That works fine with integrated video adapters like Intel, but doesn't work well with discrete ones, as resetting context may require synchronizing state.

Some sort of buffering needs to be implemented; to call multiple functions under a single glMakeCurrent.

Chromium source have a /gpu/command_buffer. Perhaps, it could be used as well.