Go to advanced search

by vaxon
Thu Nov 28, 2019 11:20 pm
Forum: OpenGLES
Topic: OpenGLES and Raspberry PI 3
Replies: 8
Views: 1276

Re: OpenGLES and Raspberry PI 3

I don't use anything except fakeKMS on Pi4 Gentoo64. Real KMS is still a work in progress one of the Pi guys said recently. I set the shader version to 300 es. I've seen Gentoo64 instructions for Pi3. Looks like some fussing around is needed to install it properly. It also says analogue audio is un...
by vaxon
Thu Nov 28, 2019 10:52 pm
Forum: OpenGLES
Topic: OpenGLES and Raspberry PI 3
Replies: 8
Views: 1276

Re: OpenGLES and Raspberry PI 3

Val, I'm curious to know what caused those compile errors. Are you using stable as opposed to nightly, and latest version? The errors were caused by the Raspbian cargo/rustc packages. I've removed them and installed rustup using the following command: curl --proto '=https' --tlsv1.2 -sSf https://sh...
by vaxon
Wed Nov 27, 2019 11:20 pm
Forum: OpenGLES
Topic: OpenGLES and Raspberry PI 3
Replies: 8
Views: 1276

Re: OpenGLES and Raspberry PI 3

I've finally managed to start Tim's demo with the KMS drivers. The following changes did the trick: diff --git a/SharedCode/SMwin.cpp b/SharedCode/SMwin.cpp index 8bddf54..63706d7 100644 --- a/SharedCode/SMwin.cpp +++ b/SharedCode/SMwin.cpp @@ -60,7 +60,7 @@ bool SDLwindow::init(const char * title, ...
by vaxon
Wed Nov 27, 2019 7:04 pm
Forum: OpenGLES
Topic: OpenGLES and Raspberry PI 3
Replies: 8
Views: 1276

Re: OpenGLES and Raspberry PI 3

I use raspi-config for switching graphic drivers. Yes, I get this error when using KMS with Tim's code as well. I'm not sure whether it's possible to use sdl2 with KMS. I think sdl2-config --cflags adds -L/opt/vc/lib which causes proprietary OpenGL libraries to be linked as well. It looks like I can...
by vaxon
Wed Nov 27, 2019 2:46 pm
Forum: Graphics programming
Topic: OpenGL performance
Replies: 9
Views: 1031

Re: OpenGL performance

Looks like VC libraries and non-GL driver is the best option to get the highest frame rate on Pi3 at the moment. I assume by non-GL drivers you mean non-Mesa drivers? If so, with the closed source GL drivers on pre-Pi4 hardware, I think eglSwapInterval(display, 0) worked for me. But then you probab...
by vaxon
Wed Nov 27, 2019 12:03 pm
Forum: Graphics programming
Topic: OpenGL performance
Replies: 9
Views: 1031

Re: OpenGL performance

Thanks!

Looks like VC libraries and non-GL driver is the best option to get the highest frame rate on Pi3 at the moment.
Is it possible to disable vbank sync in this case to get more than 60fps?

Thanks,
V.
by vaxon
Mon Nov 25, 2019 4:40 pm
Forum: Graphics programming
Topic: OpenGL performance
Replies: 9
Views: 1031

Re: OpenGL performance

BTW, glxgears shows more fps at lower resolutions. For example, "vblank_mode=0 glxgears -fullscreen" gives the following results with kms drivers: 30fps at [email protected].7 72fps at [email protected].9 Not sure how to disable vblank sync with the legacy driver. Thus, hello_triangle.bin test from /opt/vc/src...
by vaxon
Mon Nov 25, 2019 4:18 pm
Forum: Graphics programming
Topic: OpenGL performance
Replies: 9
Views: 1031

Re: OpenGL performance

From what I've read, the VC6 on the RPi4 only has two QPU slices whereas the VC4 on older models had three. The new QPUs have more instructions (can work with half floats I think), more registers (in one bank rather than two), possibly better pipelined and maybe more cache in addition to being run ...
by vaxon
Mon Nov 25, 2019 4:09 pm
Forum: Graphics programming
Topic: OpenGL performance
Replies: 9
Views: 1031

Re: OpenGL performance

jamesh wrote:
Mon Nov 25, 2019 1:40 pm
What frame rate is the display?
The display shows 60Hz with the legacy driver and 59.7Hz with fake/full kms.

Thanks,
V.
by vaxon
Mon Nov 25, 2019 11:27 am
Forum: Graphics programming
Topic: OpenGL performance
Replies: 9
Views: 1031

OpenGL performance

I've been experimenting with OpenGL on Raspberry Pi 3. I can get 60fps with a simple full-screen demo using Legacy driver and bcm libraries, which is quite cool. However, using either fake KMS or full KMS drivers I don''t seem to get more than 30fps with the same demo Even glxgears shows about 30fps...
by vaxon
Fri Nov 22, 2019 5:15 pm
Forum: OpenGLES
Topic: OpenGLES and Raspberry PI 3
Replies: 8
Views: 1276

OpenGLES and Raspberry PI 3

Hi! I've just tried some simple OpenGLES examples on my R-Pi 3, and it looks like the things have got worse than before. Lots of thing used to work a year ago, however everything I try seems to fail now. For example, SDL2 + OpenGLES used to work with the KMS OpenGL driver according to: https://www.y...

Go to advanced search