Results 1 to 3 of 3

Thread: 54 cubes... and all slow down?

  1. #1

    54 cubes... and all slow down?

    I coded my second try in OpenGL.
    Drawed 54 Cubes (6 quad faces x cube) texture mapped with an 128x128 texture with lightsource.
    When i calc few cubes it rotate speed... when i try to add cubes up to 54 (my code limit) all slow down.

    I'm using a MatroxG400 with 16Mb and a Celeron450Mhz, so i think isn't a speed problem.

    I've also implemented a C++ class using CPU internal clock instruction (RDTSC...) to obtain an accurate value to know how program weights. With 640x480x32bit (85Hz) fullscreen it uses less than 1/20 of frame.
    Maybe a coding/driver problem... or my fast/super/duper video card slow down with 54 cubes (54 x 6 = 324 faces or 648 mapped triangle ?)...

    the system slowdown else with only 2 cubes but using a 512x512 texture... maybe a texture mapping failure...

    cya.

  2. #2
    Senior Member Regular Contributor
    Join Date
    Mar 2000
    Location
    Germany
    Posts
    183

    Re: 54 cubes... and all slow down?

    Hm, could it be that you pass down the texture for each face you are drawing?

    This will result in 324 transfers of the texture map to your gfx card (some drivers notice that, others not) making things slow as hell.

    Look into texture objects to solve this.

    Regards,

    LG

  3. #3

    Re: 54 cubes... and all slow down?

    Texture downloading is done only one time.
    Every drawing pass i use a "bindtexture" command to select texture and then draw cube...
    (is normal that my G400 OpenGL imaplementation doens't support waitVBL?)

Similar Threads

  1. Rotating Cubes
    By loreen in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 11-15-2016, 01:19 PM
  2. Marching Cubes
    By Satanic Dogus in forum OpenGL: Basic Coding
    Replies: 13
    Last Post: 10-11-2001, 08:06 PM
  3. OpenGL Cubes
    By in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 02-02-2001, 03:41 PM
  4. Please help me. Just 2 cubes and it's slow
    By Frenchi Guy in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 05-12-2000, 05:52 AM
  5. Replies: 10
    Last Post: 04-30-2000, 01:39 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean