2d drawing perfomance issue
Posted: Wed Dec 02, 2015 8:26 pm
so far, i did lot's of optimations on my project, and seems to have an speed issue when output all that rendered stuff. Environment:
* Regular Window which may change size, standard windows gdi drawing
* after inital clearing (fillrect), 5000 rectangulars are drawn (createsolidbrush, fillrect, deleteobject(brush))
* content is copyied to the real window output dc (bitblt)
However this is damn small, So I want to use hardware acceleration. Big problem is I don't have much experience how this will improve performance.
Also I don't know if I should use regular 2d drawing (e.g. box()) or sprites instead.
Can anyone share some experience?
Thanks in advance
* Regular Window which may change size, standard windows gdi drawing
* after inital clearing (fillrect), 5000 rectangulars are drawn (createsolidbrush, fillrect, deleteobject(brush))
* content is copyied to the real window output dc (bitblt)
However this is damn small, So I want to use hardware acceleration. Big problem is I don't have much experience how this will improve performance.
Also I don't know if I should use regular 2d drawing (e.g. box()) or sprites instead.
Can anyone share some experience?
Thanks in advance