CPU efficient

This is a discussion on CPU efficient within the Game Programming forums, part of the General Programming Boards category; I have tried to make 3D games before, and the first thing that makes me give up, it that it ...

  1. #1
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342

    Question CPU efficient

    I have tried to make 3D games before, and the first thing that makes me give up, it that it start becoming VERY VERY VERY sssslllllloooowwww. So my question is...What is the absolute most CPU efficient way to draw 3D.

  2. #2
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,070
    I don't really think that question can be definativly answered, but here are a couple of general rules:

    -Use as few function calls as possible. Display lists, vertex arrays, and vertex buffers can all help with this.
    -Don't draw what you can't see.
    Memorial University of Newfoundland
    Computer Science

    Mac and OpenGL evangelist.

  3. #3
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    I have seen plenty of video games draw tons of detailed shapes and the computer runs it fine, but when I do that (yes, in a vertex array) it's slower than mallassos. Do these games make the processer work harder for them or somthing???

  4. #4
    Its hard... But im here swgh's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,475
    Either that or they use top of the range graphic librarys with direct x. Most proffestional companies have all the avaliable tools at there disposal.
    I'm just trying to be a better person - My Name Is Earl

  5. #5
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,070
    Could be your implementation, or any number of other factors. Do you have any code to share as an example?
    Memorial University of Newfoundland
    Computer Science

    Mac and OpenGL evangelist.

  6. #6
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    The only slowdown I've ever noticed is when I tried to pass over 350K triangles to my GeForce 3 64MB. Other than terrains and other objects that require lots of tri's, you should not have any issues.

  7. #7
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    I've had major slowdown problems doing stuff like combining lighting and antialiasing on like my school's crap computers. But uh, other than that, I really haven't had any problems either. Maybe you could cite something specific? Provide specs? I dunno.

    ╔╗╔╦══╦╗╔╦══╦╗
    ║╚╝║╔╗║╚╝║╔╗║║
    ║╔╗║╠╣║╔╗║╠╣╠╣
    ╚╝╚╩╝╚╩╝╚╩╝╚╩╝

    codez http://code.google.com/p/zxcvbn/

  8. #8
    In the Land of Diddly-Doo g4j31a5's Avatar
    Join Date
    Jul 2006
    Posts
    476
    Actually there're numerous ways to increase performance:

    Games has a culling system which only renders viewable objects. Try a simple one like BSP. Check this link:
    http://www.gamedev.net/reference/art...rticle1212.asp

    There's a way of using a static 2D background objects (forgot the name of the method) instead of using pure 3D ones.

    Also if you want, try some shader language like Cg. That will increase the performance alot.
    Last edited by g4j31a5; 12-15-2006 at 12:19 AM.
    ERROR: Brain not found. Please insert a new brain!

    “Do nothing which is of no use.” - Miyamoto Musashi.

  9. #9
    Super Moderator VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,596
    What is the absolute most CPU efficient way to draw 3D.
    Quite simply, don't use the CPU. That is what graphics cards are doing. They are offloading the burden of 3D calculations, rendering, and rasterizing to the GPU while the CPU performs more important tasks.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. pthread question
    By quantt in forum Linux Programming
    Replies: 7
    Last Post: 04-07-2009, 01:21 AM
  2. questions on multiple thread programming
    By lehe in forum C Programming
    Replies: 11
    Last Post: 03-27-2009, 07:44 AM
  3. Upgrading my old CPU (for another old one!)
    By foxman in forum Tech Board
    Replies: 16
    Last Post: 01-11-2008, 04:41 PM
  4. Can you still view the bios screen with a bad CPU?
    By HyperCreep in forum Tech Board
    Replies: 4
    Last Post: 12-31-2006, 05:57 PM
  5. CPU temp
    By PING in forum Tech Board
    Replies: 5
    Last Post: 01-28-2006, 05:25 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21