Posts: 44
Joined: Tue Jan 24, 2012 6:41 am

1000 Triangles on a Pi 4 at 60 fps - No Problem

Fri May 29, 2020 7:21 am

I've spent about a month now researching how to run OpenGL with hardware acceleration on a Pi 4 and I'm very pleased with the results. The challenge was I wanted to use C# as it is a much friendlier language than C++ and I also wanted to write common code that would run on either a PC or a Pi. Using .Net Core means you can compile and test on a PC using the free version of Visual Studio and then just copy the compiled program over to the Pi and run it there.

Here is the result:

and here is an earlier test with a side by side comparison:

I worked my way up from drawing a triangle on the Pi in C. I wanted to understand everything from first prinicples and also needed to learn OpenGL at the same time so it's been a slog but very satisfying. The Raspberry Pi never ceases to amaze me!

User avatar
Posts: 4526
Joined: Wed Aug 28, 2013 3:31 am

Re: 1000 Triangles on a Pi 4 at 60 fps - No Problem

Mon Jul 06, 2020 12:08 pm

Try the ipers mesa demo, I get 5290 polygons at 60fps. ... /src/demos
Plenty of demos there to play with.

I have wanted to try graphics with D, tried most of the others, never tried C#.
Python is pretty handy to swap between PC and Pi's
I'm dancing on Rainbows.
Raspberries are not Apples or Oranges

Return to “Graphics programming”