Skip to content
This repository has been archived by the owner on Dec 2, 2019. It is now read-only.

OpenGLES2 example #878

Open
ktb92677 opened this issue Aug 1, 2019 · 1 comment
Open

OpenGLES2 example #878

ktb92677 opened this issue Aug 1, 2019 · 1 comment

Comments

@ktb92677
Copy link

ktb92677 commented Aug 1, 2019

Hi all. I am currently running the opengles2 example for nuklear on my raspberry PI3B+. I posted a comment on #748. But I figured this required its own post so here it is!

The example runs at a little below 30fps. To be more specific each render cycle takes around 36ms. I have been able to narrow it down to two lines of code. They are as follows:

glBufferData(GL_ARRAY_BUFFER, max_vertex_buffer, NULL, GL_STREAM_DRAW);
glBufferData(GL_ELEMENT_ARRAY_BUFFER, max_element_buffer, NULL, GL_STREAM_DRAW);

Those two lines take 10ms and 24ms respectively. If anyone who knows a lot of Opengles2 it would be great if you could chime in as I really want to bring the FPS closer to 60 if possible.

@zwykl3
Copy link

zwykl3 commented Aug 3, 2019

Tell me how write a red line and green rectangle on desktop/background?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants