Results 1 to 3 of 3

Thread: game loop without creating an endless loop?

  1. #1

    Thread Starter
    Lively Member FireSlash518's Avatar
    Join Date
    Nov 2001
    Posts
    67

    game loop without creating an endless loop?

    im trying to setup a loop for my game to draw the scene as many times as it can each second, however, i end up simply creating a loop that stops basically everything. timers do not function, command buttion clicks are ignored, not what i wanted.

    so, then i tried a timer, but even at a setting of 1 it was too slow for my purpose. (unless you want to play the game limited to 10 FPS ) so, is there any faster timer system, or a differnt loop system i didnt think of?
    thanks

    Leader of the Maxoverkill Mods
    -Fire§lash

  2. #2
    Fanatic Member invitro's Avatar
    Join Date
    Jan 2000
    Location
    Outside your window
    Posts
    547
    Try adding a
    DoEvents right after your Do

    Code:
    Do
     DoEvents
    
     'Stuff Happens here
    
    Loop Until Something Happens
    If you want you can post some of your code, so we can see how you've set it up.
    ok, so... windows takes 1 minute to search for a file on my PC yet google.com takes 1 second to search the entire internet?

  3. #3

    Thread Starter
    Lively Member FireSlash518's Avatar
    Join Date
    Nov 2001
    Posts
    67
    well that will prolly work better than the while 0 i was trying to use

    Leader of the Maxoverkill Mods
    -Fire§lash

Posting Permissions

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



Click Here to Expand Forum to Full Width