Qt pixel manipulation in android is slow -


i using qt show video using images made using pixel manipulation.

i have timer signals every 1 milisecond initialized in mainwindow constructor:

image = new qimage(w,h,qimage::format_argb32_premultiplied); painter = new qpainter(image); timer = new qtimer(this); connect(timer, signal(timeout()), this, slot(tick())); timer->start(1); 

and whenever calls tick() method, draw on qimage using qpainter. draw image on window in paintevent method using code below:

qimage img = image->scaled(this->size(),qt::ignoreaspectratio,qt::smoothtransformation); qpalette palette; palette.setbrush(qpalette::background, img); this->setpalette(palette); 

on microsoft windows can around 200 frames per second speed on android around 10 frames per second.

how can speed on android? how can change opengl if faster?


Comments