Page 1 of 1

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

Posted: Fri May 29, 2020 7:21 am
by Orange
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!

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

Posted: Mon Jul 06, 2020 12:08 pm
by Gavinmc42
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