Author Topic: framebuffer problem  (Read 354 times)

Offline andyz74

  • Jr. Member
  • *
  • Posts: 25
framebuffer problem
« on: February 18, 2025, 05:51:12 PM »
Hello and good evening!

I've done a little experimenting in doing easy graphic-stuff by writing direct to framebuffer /dev/fb0  (Debian Linux 64bit here)
Mainly in Free Pascal, before testing in Assembly.
While getting lots of garbage as output I also tested code, where I think it HAS to be good and HAS to work, I also got garbage.
( https://github.com/xmdi/SCHIZONE/tree/main/ex/ex020_framebuffer )   
If I test it on my Laptop (also Debian), it works, but not here on my beloved Desktopcomputer.

Now to my questions :
1) Is there anything I have to configure on my framebuffer in my Linux, and
2) Is it worth the time, or should I better invest time in SDL2 for doing graphics stuff?

Greetz, Andy

Offline fredericopissarra

  • Full Member
  • **
  • Posts: 382
  • Country: br
Re: framebuffer problem
« Reply #1 on: February 19, 2025, 12:18:30 PM »
You have to make sure that your video drivers support /dev/fb? and make sure it is enabled in kernel configs, AND if it is accessible to your user...

It is better to use SDL2 (or 3, it is available now!).

Offline andyz74

  • Jr. Member
  • *
  • Posts: 25
Re: framebuffer problem
« Reply #2 on: February 19, 2025, 05:53:36 PM »
OK. I will check the Video drivers, If I manage to find Out how. 😂

Do you know If one of both framebuffer / sdl is faster as the other?

Offline fredericopissarra

  • Full Member
  • **
  • Posts: 382
  • Country: br
Re: framebuffer problem
« Reply #3 on: February 19, 2025, 11:10:33 PM »
Do you know If one of both framebuffer / sdl is faster as the other?
fbdev don't offer any acceleration support, not even in 2D like Bit Block Transfers (Bitblt)... SDL (2 and 3) does.

Offline andyz74

  • Jr. Member
  • *
  • Posts: 25
Re: framebuffer problem
« Reply #4 on: February 20, 2025, 07:18:35 PM »
OK...  Thanks you Frederico!  I think, I will do my stuff at sdl2, It is already installed in my system.