Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Vulkan  (Read 3898 times)

0 Members and 1 Guest are viewing this topic.

Orionman

  • Newbie
  • *
  • Posts: 1
    • View Profile
    • Email
Vulkan
« on: September 23, 2020, 07:12:29 am »
Hi!
Are there plans to update the SFML to use the Vulkan API instead of the outmoded OpenGL?
According to Apple, OpenGL is outdated back in 2018.
SDL 2 - can work with it https://wiki.libsdl.org/CategoryVulkan
SFML have no future without this update.
Vulkan home https://www.khronos.org/vulkan/

Rafiz

  • Newbie
  • *
  • Posts: 2
    • View Profile
    • Email
Re: Vulkan
« Reply #1 on: October 12, 2020, 05:48:20 pm »
I would assume that you care about performance, because OpenGL is well supported, and it isn't outdated. In this case you will be always better(quicker) when wrting in pure OpenGL/Vulkan (assuming you know what you are doing and write code super optimally) instead of using SDL2/SFML/any_other_lib.

Maybe something specific from SDL/SFML that would optimize code for someone is slowing down program in your case, maybe you could optimize something that those libraries doesn't consider, maybe you could (in your case) avoid some boolean checks, because you need more "specialized" solution and don't need those bool checks.

I sometimes look into SFML/SDL implementation files when I use them and I see "oh, this code is something I don't need, but I know for what cases it's here". Heck, sometimes I even rewrite something too, or inherit from this stuff, because why not...

If you are so concerned about performance, than perhaps you should be use neither SDL2 nor SFML? use Vulkan and implement everything yourself. Or use SFML and If you have some performance bottleneck in some specific place, than you can somehow implement this part in OpenGL/Vulkan yourself...
« Last Edit: October 12, 2020, 10:57:43 pm by Rafiz »

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11033
    • View Profile
    • development blog
    • Email
Re: Vulkan
« Reply #2 on: October 14, 2020, 10:50:08 am »
You can already create Vulkan surfaces on SFML windows.
There's also a complete example. ;)

As for the sfml-graphics backend, there are plans for multi-backend support. OpenGL (ES) is still the most popular and most used graphics API, so this has still a very good future ahead of itself.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

 

anything