Hi,

Ive made a tilebased graphics engine. Problem is, that when im displaying 2 many transparent objects (tdximagelist transparent images) it gets slow, real slow.

the way im doing it now is just a loop;

for x:=iTilePointMinX to iTilePointMaxX do
begin
for y:=iTilePointMinY to iTilePointMaxY do
begin

DxImageList1.Items[aMap[x,y]].Draw(DxDraw1.surface, (x*80)-scrollX,(y*80)-scrollY, 0);


end;
end;

the iTilePointMinX,iTilePointMaxX, etc are calculated based on what can actually be displayed (so no extra tiles will be drawed).

After this, i would have a loop which draws the objects/sprites.

the patternindex im setting to 0, im using a dximage par tile.
Also, im stuffing all the images (tiles and objects/sprites) to systemmemory.

How could i make this faster ?