Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Text output pixel by pixel 8x8

  1. #11
    I have no comparison but I think using the rectangles is fast enough. I made a test with 1000 x "Hello crazy World" with random colours, positions, alphablends and textsizes. The result is (on my machine here): 176 ms.

    fonttest.jpg
    Best regards,
    Cybermonkey

  2. #12
    Nevermind, the thread tree is confusing me ...
    Last edited by Solstice Project; 01-11-2013 at 12:32 AM.

  3. #13
    You could use that array to generate a bitmap font, and draw it as quads same way you would use other fonts. If i understood you are drawing each unique pixel per frame, and is something i'd not recommend for performance reasons.

  4. #14
    PGD Community Manager AthenaOfDelphi's Avatar
    Join Date
    Dec 2004
    Location
    South Wales, UK
    Posts
    1,245
    Blog Entries
    2
    My suggestion was to use the data you have to pre-render a bitmap during application startup (i.e. it only ever lives in memory) and then do exactly as User137 is suggesting... simply draw your letters as quads and stick the relevant section of your pre-rendered bitmap to it as the texture.

    That's how I'd go about doing it. Clean, relatively efficient and simple.
    :: AthenaOfDelphi :: My Blog :: My Software ::

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •