Quantcast
Channel: arm - openFrameworks
Viewing all articles
Browse latest Browse all 364

Image buffering for Raspberry Pi3

$
0
0

@ofgenvvk wrote:

Hi folks,

Is there any addons for Pi, which are built on using Fbo and ofThread together?
I am trying to use classical Fbo buffer, but it seems that it slows down Rasp
dramatically.

Actually, I need any king of image buffering for Pi.

In other words, I need class (object), let's say A, which would update its image buffer each 30 frames, but should draw its buffer every frame at ofApp.cpp.

class A:

update(){

    updated = true;

}

draw(){

  if(updated){

 fbo->begin();
 oClear(255, 0);

 ...

 fbo->end();

 }

 fbo->draw(x, y);

}

The problem that fbo->draw(x, y) slows down the whole code dramatically, even its width and height are 200x100. Fps are less than 4-5.

For example, if we replace this line with ofDrawRectangle(x, y, 200, 100) — fps are above 30.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 364

Trending Articles