Thread: GLUT image takes over 440MB?????

  1. #1
    Registered User
    Join Date
    Nov 2001
    Posts
    54

    Angry GLUT image takes over 440MB?????

    okay, i have a GLUT window that gets called by a win32 GUI (finally got that working )

    the problem: when i run the code it complains about the size of the image (size as in memory size)

    i have 10,000 cubes created with upto 1,000,000 connections between these cubes, these are just straight lines

    all this is enclosed within a wireframe sphere

    i have tried to run it with 512mb of RAM but it keeps crashing or freezing

    my question, is there a way to optomize the code so that it does not take as much memory

    i have encluded the file as i am unsure about what sections to paste here

    thanx in advance

    korbitz

    oh yeah, heres the warning message from vc6

    Debug/test1.exe : warning LNK4084: total image size 437907456 exceeds max (268435456); image may not run

  2. #2
    'AlHamdulillah
    Join Date
    Feb 2003
    Posts
    790
    assuming no optimizations, you're running 2,080,000 vertices through the program, excluding the sphere? what is your full system setup, as I am not sure even a current generation graphics card can pump that much out.


    my question, is there a way to optomize the code so that it does not take as much memory
    are all these cubes supposed to be onscreen at one time? if not, then you need to do a search for frustrum culling(doing a google search should do you well, as well as a board search as Silvercord used to have a thread when he was first computing frustrums that got quite in depth).

  3. #3
    Registered User
    Join Date
    Nov 2001
    Posts
    54
    in responce to yer last point, yes i do need all cubes on screen at a time although 10000 will probably wont be ever achieved, but scope needs to be in place for this to happen, (just incase)

    is there another way to display the nodes, it really doesn't need to be a cube, other shapes are okay, as long as they are distiguishable from the connections and the sphere itself

    my current setup:

    AthlonXP 2100
    512Mb DDR 333

    ATI Radeon9000 128mb ram

    OS: WinXP Professional

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem reading tiff image files?
    By compz in forum C++ Programming
    Replies: 9
    Last Post: 10-30-2009, 04:17 AM
  2. Replies: 1
    Last Post: 05-27-2009, 12:46 PM
  3. Simple Image Processing
    By ejohns85 in forum C++ Programming
    Replies: 4
    Last Post: 03-19-2009, 12:10 PM
  4. Replies: 4
    Last Post: 03-02-2003, 09:12 AM
  5. How to change a mouse cursor in console mode
    By GaPe in forum Windows Programming
    Replies: 10
    Last Post: 07-03-2002, 07:42 AM