@THCM:
Yes, i will release a test version using SetFrameRate(60) very soon... Could you tell me please your CPU/Memory/Windows/DirectX versions?
btw... here is a source for all people had problems with the music and CPU ussage... just test it...
Code: Select all
; -------- Test the Module PlayerRoutine and the CPU ussage....
cFile$ = OpenFileRequester("Please select your Protracker Module","","",0)
If cFile$ = ""
MessageRequester("Error","Cant find Module!",0)
End
EndIf
If InitSprite() = 0
MessageRequester("Error","Cant Init Sprite!",0)
End
EndIf
If InitKeyboard() = 0
MessageRequester("Error","Cant Init Keyboard!",0)
End
EndIf
If InitSound() = 0
MessageRequester("Error","Cant Init Sound!",0)
End
EndIf
If InitModule() = 0
MessageRequester("Error","Cant Init Module!",0)
End
EndIf
If OpenWindow(0,0,0,640,480,#PB_Window_WindowCentered |#PB_Window_ScreenCentered ,"PlayModule and Screeb CPU ussage Test") = 0
MessageRequester("Error","Cant open Window!",0)
End
EndIf
If OpenWindowedScreen(WindowID(0),0,0,640,480,0,0,0) = 0
MessageRequester("Error","Cant open Windowed Screen!",0)
End
EndIf
; -------- Load and Play Protracker Module --------
LoadModule(0,cFile$)
PlayModule(0)
; -------- Draw on Screen any play Module --------
Repeat
lEvent = WindowEvent()
ExamineKeyboard()
ClearScreen(0)
StartDrawing(ScreenOutput())
Box( Random(640-20), Random(480-20), 20, 20, $ffffff )
StopDrawing()
FlipBuffers(1)
Delay(1)
Until KeyboardPushed(#PB_Key_Escape)
End