How do hardware lights work?

Blitz3D Forums/Blitz3D Programming/How do hardware lights work?

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Shambler:

Call this FPS code once per renderworld, and you will see that the FPS is over 1000, and that there is a difference between 1 and 2 lights.

This is much more accurate FPS code than your basic FPS code, because it counts the actual number of frames that happened in a second rather than trying to compute how much time an inidvidual frame took and extrapolating that to the entire second.

Global FPS_Timer
Global FPS_FrameCount
Global FPS_FPS

Function FPS()
	
	FPS_FrameCount = FPS_FrameCount + 1
	
	If MilliSecs() >= FPS_Timer
		
		FPS_FPS        = FPS_FrameCount
		FPS_FrameCount = 0  
		FPS_Timer      = MilliSecs() + 1000
		
	EndIf

	Return FPS_FPS
	
End Function