Forums - Openg GL ES multiple contexts

3 posts / 0 new
Last post
Openg GL ES multiple contexts
jf.gagnon
Join Date: 18 Jul 16
Posts: 5
Posted: Mon, 2016-07-18 13:20

How are multiple OpenGL ES contexts handled? That is, for the same application. Does one have some kind of control over scheduling? Would it be efficient GPU wise to have some compute shader launched from one context while shadow map rendering is launched from an another one (assuming compute shader is indeed ALU bound and not bandwidth bound)?

  • Up0
  • Down0
mhfeldma Moderator
Join Date: 29 Nov 12
Posts: 310
Posted: Fri, 2016-07-29 08:05

OpenGL-ES is limited by having a single active rendering thread.  Multiple OpenGLES contexts may be helpful for bookkeeping purposes but there's no feasible way to avoid having synchronous processing with the GPU.

Vulkan offers advantanges in this area, if it makes sense in your case to port/develop the applicaiton to the new API.

  • Up0
  • Down0
carrado.grant@g...
Join Date: 20 Sep 12
Posts: 38
Posted: Fri, 2016-07-29 08:21

Seems like you asked the same question in the Mali developer forum...and the answer remains the same. OpenGL ES behaves differently from the newer graphics API like Vulkan in that most of the finer grain control is in the driver not at the API level.

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.