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

Author Topic: Embedded graphics  (Read 3349 times)

0 Members and 1 Guest are viewing this topic.

jfsimon1981

  • Newbie
  • *
  • Posts: 7
    • View Profile
    • Email
Embedded graphics
« on: May 06, 2022, 10:37:02 pm »
Hi,
I was working on a beagle board project where some animations are done with SFML and it seems though working it was not performing fast. After discuss we understood that's probably due to the fact SFML uses OpenGL which is not accelerated and uses software emulation on this particular hardware.

Is there a way to build SFML differently so it uses other means to render than OpenGL ?
There is OpenGLES and otherwise Linux graphic libraries available.

Regards

Jean-François

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Embedded graphics
« Reply #1 on: May 06, 2022, 11:21:47 pm »
You're a bit vague on the device itself, but you can build SFML with OpenGL ES support by setting SFML_OPENGL_ES when building SFML.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

jfsimon1981

  • Newbie
  • *
  • Posts: 7
    • View Profile
    • Email
Re: Embedded graphics
« Reply #2 on: May 07, 2022, 09:06:48 pm »
Hi,

Great news, it's a Beagleboard black with AM335x ti ARM based (v7) and SGX 530 graphic card which supports OpenGL ES 1 and 2.

Would SFML be accelerated ? At the moment it uses GL and the software emulation somehow, which works but it very slow (CPU emulation).

Thanks & regards,

Jean-François

jfsimon1981

  • Newbie
  • *
  • Posts: 7
    • View Profile
    • Email
Re: Embedded graphics
« Reply #3 on: May 08, 2022, 12:00:27 pm »
Hello,

The question essentially is whether SFML will be hardware accellerated when compiled with SFML ES flag and using the 2D draw fuctons, scale, move, draw, animate sprites ...

Meaning I don't need to work with an OpenGLES context, indeed to work with SFML core functions (and not run through OpenGL emulation since the HW supports only GLES 1/2).

But I'll experiment with this as well though if someone already know clearly about that it'd help.

Thank you,

Jean-François

eXpl0it3r

  • SFML Team
  • Hero Member
  • *****
  • Posts: 11034
    • View Profile
    • development blog
    • Email
Re: Embedded graphics
« Reply #4 on: May 09, 2022, 05:40:16 pm »
It's the graphics driver's responsibility to decide what to do with OpenGL or OpenGL ES calls.
Thus make sure you have a graphics driver installed and then all you can do is test it.
Official FAQ: https://www.sfml-dev.org/faq.php
Official Discord Server: https://discord.gg/nr4X7Fh
——————————————————————
Dev Blog: https://duerrenberger.dev/blog/

jfsimon1981

  • Newbie
  • *
  • Posts: 7
    • View Profile
    • Email
Re: Embedded graphics
« Reply #5 on: May 10, 2022, 10:01:27 pm »
Thanks,

Jean-François

 

anything