Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. IT & Infrastructure
  4. Question of DirectX Image Efficiency

Question of DirectX Image Efficiency

Scheduled Pinned Locked Moved IT & Infrastructure
game-devperformancequestiongraphicsdesign
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jeryth
    wrote on last edited by
    #1

    I'm developing a DirectX card game and had a quick question of design effiiciency. I've got two ways in mind to draw the cards to the backbuffer. One, create one big image file with the whole deck laid out, load that to a surface, then just copy the rect for whichever card I need. Or two, create three different images ( one for the card body, one with the suit images, one with the card numbers ) and use copy rects and transparancy where needed to stack the images to make a card. I understand the first method will take up more total memory to store the image, but I'm not sure what extra resources the second would use with all the extra function calls. Any thoughts or other ideas for accomplishing the task? I realize it's not necesary since most computers can do it fine either way, but I'm shooting for efficiency and speed here. Thanks. Always Fear the Man with Nothing to Lose Jeryth

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups