Results 1 to 3 of 3

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

Threaded View

  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

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