February 27th, 2014, 07:08 PM
Lot Bitmap in game
I have a problem. I create an array [0..999] with TBitmap.
Each bitmap are 60x60 pixels large. I put on each bitmap necessary image for game and then I draw all these bitmaps in one larger bitmap (20 columns times 50 rows). After this larger bitmap is drawed in paintbox. When used array count is not large till 100 (20 columns times 5 rows) all is OK (CPU calculation happens in aprox 20ms) but if I use all 1000 bitmaps computer is very slow on calculation (aprox 1second) and is visible slow graphic moving. Is it possible to speed up this process?
February 28th, 2014, 01:00 PM
What is slow?
I don't understand the issue.
If you are painting 1000 bitmaps, that will obviously take longer than painting 100.
Also sounds like you are building the graphic on screen.
Try building it off screen then showing it.