Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 5 of 5

Thread: How to display two value bitmap efficiently?

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2005
    Posts
    11

    How to display two value bitmap efficiently?

    I dont know the name of this kind of bitmap in English. 1 bit per pixel .
    How to display it quickly?
    5MB takes 9 seconds when using texture.too slowly

  2. #2
    Member Regular Contributor
    Join Date
    Jan 2004
    Posts
    322

    Re: How to display two value bitmap efficiently?

    Hmmm. Exactly what takes 9 seconds?
    Loading and uploading and rendering, or just rendering?

    Also, what are the dimensions of the bitmap?
    5MB at 1 bit per pixel is over 40 million pixels.
    8000x5000?

  3. #3
    Junior Member Newbie
    Join Date
    Mar 2005
    Posts
    11

    Re: How to display two value bitmap efficiently?

    loading and rendering
    40000*1000
    Originally posted by T101:
    Hmmm. Exactly what takes 9 seconds?
    Loading and uploading and rendering, or just rendering?

    Also, what are the dimensions of the bitmap?
    5MB at 1 bit per pixel is over 40 million pixels.
    8000x5000?

  4. #4
    Member Regular Contributor
    Join Date
    Jan 2004
    Posts
    322

    Re: How to display two value bitmap efficiently?

    As far as loading it is concerned - that's up to you to fix.

    W.r.t. upload times and render times:

    -How much memory is there on the card?
    -What's the sized internal format you use for uploading the texture?
    -What is the maximum supported texture size in hardware on your card?

    An example: if the card stores textures internally as powers of two and at 8 bits per pixel, you need 64MB of texture memory excluding mipmaps.
    Add the frame buffer and you'll need a card with more than 64MB.

    All that assuming texture sizes of 40000 or more are even supported by your hardware - you might be getting software rasterization here.

    It may be a good idea to split the thing up into 40 separate 1024x1024 blocks. (or even about 160 512x512 ones - it all depends on the maximum supported texture size)

  5. #5
    Intern Contributor
    Join Date
    Oct 2003
    Posts
    68

    Re: How to display two value bitmap efficiently?

    Also, unless you have a very unusual monitor, you can't actually display 40,000x1000 pixels at once, so you might consider streaming the data. It would mainly help with the loading part, but breaking it into chunks would probably help with sending to the card and displaying as well, especially if the card doesn't have much RAM.
    If you normally display the entire thing, you probably want to display a lower resolution version, and page in higher res chunks as you zoom in. Depending on what your data looks like, it might be better to store each level as the difference between that level and the previous, which could let you compress better, thereby letting you load faster.
    If you display at full resolution, just chop the file into chunks (512x512 or 1024x1024 probably, or 1000x1000 if your target hardware supports rectangle or NPOT textures) and load as needed (or in the background).

Posting Permissions

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