WaitEvent() in Blitz3D with userlibs

Blitz3D Forums/Blitz3D Userlibs/WaitEvent() in Blitz3D with userlibs

Oh man! That's kind of daft, that I didn't think of that myself.

This is basicly what I had:
*Check for input*
If MilliSecs() - lastInteraction > 2000 Then
	Delay 100
EndIf
*Draw stuff*

And I didn't even think of adding a simple 'Else':
*Check for input*
If MilliSecs() - lastInteraction > 2000 Then
	Delay 100
Else
	*Draw stuff*
EndIf

Hehe, oh well, thanks again jfk. Task Manager now says my program takes 0% CPU power. :D


EDIT: As a matter of fact, if I remove the 'Delay 100' it still runs at 0% CPU. So I'm going to just let my program check for input at 50 fps and only draw when the user does something. Seems kind of obvious now.