Skip to content

thread safe SDL_RendererΒ #6265

Open
Open

Description

@volt-bot

I still don't understand why we don't have thread safe SDL_renderer. I mean it's almost 2023. what isn't multithread accessible. my team is working on a modern fully featured GUI but are having a hard time implementing some features due to lack of a thread safe renderer. we were even thinking on rewriting the whole code base with a different graphics API. we've testeted the SDL's renderer on multithreaded systems and works fine with vulkan and direct x contexts. why are we letting a single API "OPENGL" prevent us from getting in on the fun and capabilities of the current tech "threading" caps.

Activity

  1. icculus commented on Sep 19, 2022

    @icculus
    Collaborator

    We are working on a next-gen 3D API that will be thread safe (and we will write an implementation of the existing 2D API that uses this new thing behind the scenes).

    In the meantime, if the existing Direct3D or whatever code is doing what you need, SDL_CreateRenderer can be used to select it specifically, or you can enumerate renderers and choose anything that isn't OpenGL, or just build SDL without OpenGL support so you definitely won't get it by default.

  2. added this to the 3.0 milestone on Sep 26, 2022
  3. self-assigned this
    on Sep 26, 2022
  4. icculus commented on Sep 26, 2022

    @icculus
    Collaborator

    Moving this to SDL3 as a TODO item.

  5. volt-bot commented on Jan 27, 2023

    @volt-bot
    Author

    ????

  6. Nolram12345 commented on May 9, 2023

    @Nolram12345

    We are working on a next-gen 3D API that will be thread safe (and we will write an implementation of the existing 2D API that uses this new thing behind the scenes).

    In the meantime, if the existing Direct3D or whatever code is doing what you need, SDL_CreateRenderer can be used to select it specifically, or you can enumerate renderers and choose anything that isn't OpenGL, or just build SDL without OpenGL support so you definitely won't get it by default.

    I would be curious to learn more about this next-gen 3D API - so far finding information on SDL3 as a whole has been difficult. To have any more info on the specifics plans for this?

  7. icculus commented on May 9, 2023

    @icculus
    Collaborator

    To have any more info on the specifics plans for this?

    https://github.com/libsdl-org/SDL_shader_tools/blob/main/docs/README-SDL_gpu.md

    so far finding information on SDL3 as a whole has been difficult.

    There's still a lot of work going on, so we aren't spending a lot of time publicly talking about new stuff at the moment, outside of GitHub. That will change, though!

  8. Nolram12345 commented on May 9, 2023

    @Nolram12345

    Thank you for the update, Ill have a look and await further news !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions