Example:-
I get 180,000 Lines per second on my machine in Window mode and 200,000+ in FullScreen
Graphics3D 640,480,32,2 Global FPS1,LastCheck,Frames1 Include "line_lib.bb" InitLine3d() SeedRnd MilliSecs() While Not KeyHit(1) For x = 0 To 1000 LineMesh = line3d(LineMesh,Rand(0,ScreenWidth),Rand(0,ScreenHeight),Rand(0,ScreenWidth),Rand(0,ScreenHeight),Rand(255),Rand(255),Rand(255)) Next RenderWorld GetFPS() Text 400,2,"FPS : "+FPS1 Flip False ClsLines() Wend Function GetFPS() Frames1 = Frames1 + 1 If MilliSecs() > LastCheck+1000 Then LastCheck = MilliSecs() FPS1 = Frames1 Frames1 = 0 EndIf Return FPS1 End Function
I get 180,000 Lines per second on my machine in Window mode and 200,000+ in FullScreen