Results 1 to 3 of 3

Thread: [vb] how come i get 0 fps???? -[RESOLVED]-

  1. #1

    Thread Starter
    Banned nareth's Avatar
    Join Date
    Jun 2004
    Posts
    1,206

    Resolved [vb] how come i get 0 fps???? -[RESOLVED]-

    VB Code:
    1. Public Sub Draw()
    2.     Dim Frames As Long
    3.     Dim FTime As Long
    4.    
    5.     Do Until Not IsPressed
    6.         If Events Then
    7.             DoEvents
    8.         End If
    9.    
    10.         Call D3DD.Clear(0, ByVal 0, D3DCLEAR_TARGET, RGB(0, 0, 0), 0, 0)
    11.         Call D3DD.BeginScene
    12.            
    13.         Call D3DD.EndScene
    14.         Call D3DD.Present(ByVal 0, ByVal 0, 0, ByVal 0)
    15.        
    16.         Let Frames = Frames + 1
    17.         If GetTickCount - FTime >= 1000 Then
    18.             Debug.Print Frames
    19.             Let Frames = 0
    20.             Let FTime = GetTickCount
    21.         End If
    22.     Loop
    23. End Sub

    removed alot of 0's
    0
    1
    0
    ...
    0
    62
    0
    ...
    0
    Last edited by Electroman; Jan 20th, 2005 at 12:38 PM. Reason: Edited Title

  2. #2
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349

    Re: [vb] how come i get 0 fps????

    That code doesn't look like it will cause 0 FPS, you've put the Resolved Icon on this, did you edit the code after you fixed it or is it not fixed yet?
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  3. #3

    Thread Starter
    Banned nareth's Avatar
    Join Date
    Jun 2004
    Posts
    1,206

    Re: [vb] how come i get 0 fps????

    in other function i putted a debug.print my mistake

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