#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2014
    Posts
    1
    Rep Power
    0

    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?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Regular (2000 - 2499 posts)

    Join Date
    Jan 2006
    Location
    Carlsbad, CA
    Posts
    2,057
    Rep Power
    383
    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.

IMN logo majestic logo threadwatch logo seochat tools logo