Hi Frank!
Hm, with the the Systemleistung.. Möglicherweise crazy I indeed with the 100% Auslastung. I schildere time How I it erlebt have: (WindowXP-PE,Profan7.0)
i'm the too only through chance noticed, as i my dll with the ProSpeed probehalber join wished. The functions the media.dll go altogether through Api-Sleep interrupted. the same in the Profanprogramm. (The Taskmonitor of XP shows me in the Sys.Tray what on performance used becomes) Auslastung minimal. OK. I bind The ProSpeed.dll one, create a Sprite, starte the program anew, the Thread the media.dll spit only still in Zeitlupe The Images out. look to that Tray. 100% Auslastung. strange, think I, take The media-functions complete out. Starte the whole again. (mind you, one Sprite and Sleep-appeal in the Hauptschleife) still 100% Auslastung! Hm, I setting The Sprite-bremse one...and minimale Auslastung.
here my Testprogramm: CompileMarkSeparationDeclare prospeed&
prospeed&=usedll("C:PRFellowBINProSpeed.dll")
$I C:PRFellowLIBProspeed_Funktionen.inc
Windowstyle 112
window Div(Sub(%maxx,480),2),Div(Sub(%maxy,400),2)-480,400
Loadbmp "back.bmp",0,0;0
Declare map&,kopie1HDC&,kopie2HDC&,Sprite1&,name$,ende%
name$="Sprite.bmp"
map&=LoadExtBmp(addr(name$),%HDC)
kopie1HDC&=LoadExtBmp(0,%hdc)
kopie2HDC&=LoadExtBmp(0,%hdc)
CopyExtBmp(kopie1HDC&,0,0,480,400,%HDC,0,0,0)
CopyExtBmp(kopie2HDC&,0,0,480,400,%HDC,0,0,0)
Sprite1&=InitSprite(map&,%HDC,kopie1HDC&,kopie2HDC&,0,0,60,60,5,1,10,100,100,1,1)
SpriteThreadBrake (1)
Whilenot ende%
Case %mousepressed:ende%=1
Sleep 50
Endwhile
DeleteAllSprites()
FreeExtBmp(kopie1HDC&)
FreeExtBmp(kopie2HDC&)
|