K
K
kapitan0v2016-08-15 11:46:11
Qt
kapitan0v, 2016-08-15 11:46:11

Which control can quickly change color?

I am making an application. There is an array of colors. According to the timer, 60 times per second you need to draw a rectangle filled with color from the array. What is the best control to use to display this rectangle?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
Onito, 2016-08-15
@kapitan0v

QImage и QPainter, вообще в таком случае лучше хранить 60 картинок чем рисовать их с нуля

Константин Степанов, 2016-08-15
@koronabora

У 2D интерфейса, частота обычно около 25-40 кадров в секунду. Лучше использовать OpenGL или Direct3D

R
Rou1997, 2016-08-15
@Rou1997

OpenGL.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question