Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
The Ping Tutorial
#5
So I never actually looked at the GAMEFPS thing. And decided to remove it to see what would happen. Well what happened was that my movement because so smooth I almost pied myself. And the Ping rise a lot =/

Code:
' Lock fps
        Do While GetTickCount < Tick + 50
            DoEvents
        Loop
        
        ' Calculate fps
        If GetTickCount > TickFPS + 1000 Then
            GameFPS = FPS
            TickFPS = GetTickCount
            FPS = 0
        Else
            FPS = FPS + 1
        End If
I know the lock is for slow computers, but I will lower the 50 value to 20 or something.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)