AnsweredAssumed Answered

Efficient way to draw static geometries in OpenVG

Question asked by Ali Sarlak on May 10, 2016
Latest reply on May 13, 2016 by Ali Sarlak

The issue is that I wanted to draw a dynamic 2D image and some static labels on the image (the static label doesn’t need to change in each swap buffer) I assume that it’s not efficient to draw the static labels each time when the background image is changing so what is the best approach to draw?


I tried these two ways:


1-I draw the label each time.

2-Use of eglCreatePbufferFromClientBuffer and bind it to VGImage then paint on VGImage and then show the VGImage.


The things that was weird to me was realizing that:


a) The first approach is faster than the second one!

b) When you use the eglCreatePbufferFromClientBuffer you cannot use of antialiasing that set in EGLConfig so your font was untidy!(At least I couldn’t use it with antialiasing)


I just know these two ways to draw, I look forward to any new idea for drawing efficiently and also I appreciate anybody that explain (a) and (b) to me.


Extra information:


OS:Linux 3.0.35