×

Discussion Board

Results 1 to 5 of 5
  1. #1
    Registered User
    Join Date
    Sep 2003
    Posts
    18

    Rendering performance when drawing text

    Hi,

    I've been doing some rendering and at first I was a little disappointed with the render speed. That was until I comented out my drawstring lines and the whole app went about 70% faster.

    So my questions are;

    1. Is there a way of speeding up drawstring?
    2. Is it worth ditching it and writing my own font render?

    Cheers
    darius

  2. #2
    Regular Contributor
    Join Date
    Aug 2003
    Location
    uk
    Posts
    232

    Re: Rendering performance when drawing text

    It worth writing your own.

    Its faster.

    Its will work exactly the same on all phones.

    The font will be the same size on every phone.

    You can plug your own fancy fonts into games and not have
    to rely on the boring built in fonts.

    Doing a proportional width font is quite a bit of work, but worth it in the long run.

  3. #3
    Registered User
    Join Date
    Sep 2003
    Posts
    18

    Re: Rendering performance when drawing text

    Cheers for that, thats pretty much the conclusion I'd come to. The only thing that I would loose is the ability to change the font colour. I didn't notice any tint functions in the graphics section, is there something that I missed?

    Cheers
    darius

  4. #4
    Registered User
    Join Date
    Sep 2003
    Posts
    18

    Re: Rendering performance when drawing text

    Just knocked up a quick font renderer, its about 8-10 times faster.

    Shame I can't tint the colour, I guess I could do it as a 3D texture, but seems a bit of a waste of resources.

  5. #5
    Registered User
    Join Date
    Jun 2004
    Posts
    9

    Re: Rendering performance when drawing text

    Yes, using a handmade font is common solution.

    But on SE T6xx phones we had to use builtin fonts, they are painted faster there than our bitmapped.

    Mike
    mixa a t wirelesslab.ru
    -------------
    free midlet testing
    http://www.wirelesslab.ru/mobile.htm [Russian]

Similar Threads

  1. Drawing text in white color (Nokia 3650)
    By alexgodin in forum Mobile Java Media (Graphics & Sounds)
    Replies: 17
    Last Post: 2005-02-24, 15:17
  2. Replies: 0
    Last Post: 2004-11-24, 18:49
  3. Drawing in text editors?
    By mstr_ in forum Symbian User Interface
    Replies: 0
    Last Post: 2004-03-04, 15:05
  4. Black text when drawing to mutable images on the 3650
    By sam.hendley in forum Mobile Java Media (Graphics & Sounds)
    Replies: 2
    Last Post: 2003-11-03, 13:18
  5. Slow rendering performance...
    By cyphre666 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 4
    Last Post: 2003-09-16, 11:38

Posting Permissions

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