I use framelimiting code
how would i get a fps readout on the screen? meaning what is my current fps rate? text 20,20,FPS%?
FPS% = 60 PERIOD% = 1000/FPS% TIME% = MilliSecs() - PERIOD% While Not KeyHit(1) Repeat ELAPSED% = MilliSecs() - TIME% Until ELAPSED% TICKS% = ELAPSED%/PERIOD% TWEEN# = Float(ELAPSED% Mod PERIOD%)/Float(PERIOD%) For C = 1 To TICKS% If C = TICKS% Then CaptureWorld TIME% = TIME% + PERIOD% UpdateWorld Next RenderWorld TWEEN# Flip Wend
how would i get a fps readout on the screen? meaning what is my current fps rate? text 20,20,FPS%?