Why is drawrect/drawline so much slower than ...

BlitzMax Forums/BlitzMax Programming/Why is drawrect/drawline so much slower than ...

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

DrawImage?

I was drawing some rectangles in my game and realised that the FPS was suffering badly and when I replaced them with pre-made images that I loaded in, it was considerably faster. I gained a large amount of FPS well worth making the change.

Similarly I was drawing some small lines (8 pairs), which were impacting the FPS a lot. I replaced them with a 2 pixel tall image which I drew 8 times and it was hugely faster.

Using DX on Vista on a slightly crappy 256MB video card.