fbmark icon indicating copy to clipboard operation
fbmark copied to clipboard

How to run the benchmark?

Open jzy3d opened this issue 2 years ago • 2 comments

Thank you for sharing this @caramelli and @davidak.

$ make
cc -Wall fb_mandelbrot.c -o fb_mandelbrot -g -O2 
cc -Wall fb_rectangle.c -o fb_rectangle -g -O2 
cc -Wall fb_sierpinski.c -o fb_sierpinski -lm -g -O2
$ ./fb_mandelbrot 
Erreur de segmentation (core dumped)

Context

  • Despite defining WIDTH, HEIGHT, POSX, POSY as env var first.
  • Running on Ubuntu 20

What should I fix?

Also, I am looking for software graphics experts for paid missions involving frame buffer usage on Linux. Would that be interesting to you?

jzy3d avatar Dec 24 '22 09:12 jzy3d

I'm always happy to spend time and share ideas on graphics and video rendering (especially for use on embedded systems), in the spirit of freedom and cooperation, simply with the philosophy of free software...

You can try running programs with sudo (e.g. sudo ./fb_mandelbrot). I know there is no error checking, programs now terminate on open() failure: https://github.com/caramelli/fbmark/commit/a240e450edd4168fafbe440e26f2d2f63aef9c22

Note that there is also a rendering issue when running programs on a Framebuffer device with line_length != bpp * width (no one has submitted the issue until now, but it's on my TODO list to fix it)

caramelli avatar Dec 25 '22 05:12 caramelli

Great, then maybe I'll ask you some suggestion on my journey with PanamaGL, a new Java OpenGL binding that I write to complement JOGL in the future.

I'll try your suggestion as soon as I am back on my Linux!

jzy3d avatar Jan 01 '23 21:01 jzy3d