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

ofLine makes my framerate drop

$
0
0

@tactif wrote:

Hi, on raspberry PI2 this function reduce the framerate from 60fps to 10fps...

ofColor(255, 255, 255, 255);
int col_step = width / 10;
int row_step = height / 10;

ofDisableSmoothing();
ofDisableAntiAliasing();
for (int i = 0; i < width; i += col_step) {
	ofLine(i, 0, i, height);
}
for (int i = 0; i < height; i += row_step) {
	ofLine(0, i, width, i);
}
ofEnableAntiAliasing();
ofEnableSmoothing();

Is there anything else I need to disable before using ofLine ? Without the ofDisableXX / ofEnable : same result

Posts: 4

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 364

Trending Articles