context limit

This topic contains 4 replies, has 2 voices, and was last updated by  amendol 6 years, 11 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #30330

    amendol
    Member

    Is there a limit on the number of opengl-es2 contexts?

    I can only create 10 in a single process.

    Also, is there a system wide (multiple-process) limit to the number of contexts?

    #34468

    Aaron
    Member

    Why do you want to create more than one context?

    Note that for performance it’s best not to use eglMakeCurrent, and rendering to textures using FBOs gives you more control than using multiple contexts.

    Aaron.

    #34469

    amendol
    Member

    Well, this is for an application framework. Each application is interdependently developed, and should only have to be concerned with it’s own contexts state.

    #34470

    Aaron
    Member

    In that case I recommend that each “application” should have it’s own thread. If you don’t want them processing in parallel, i.e. if you want each to render a frame in turn, have a thread that round-robins each application, waking up that applications thread for a frame while sleeping itself until the frame is complete.

    Your situation reminds me of the browser plug-in model, where each plug-in that uses OGLES should internally create a thread to do its work, or at least all the rendering work.

    Much better to do that than to call eglMakeCurrent in a single thread as you switch between applications.

    #34471

    amendol
    Member

    The preference for this system is to separate applications with a process boundary for security and robustness reasons. 

Viewing 5 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic.