| |
|
|
| 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&)
| 04/20/04 ▲ | |
|
|
|
|
| Hi Mischa,
the system shining me to very unfair To his! (be I but dwelt, computer like me not, I tappt im dunkeln To very quäle
The joke is einmalig !!!!! but in the serious. you have right, the Sleep commands in the Sprite-Thread is really not any more there... computer shine me neither To like, always vanish any items )) Have it again installed, in Version 2.4 becomes it again there his, together with diverse jolly Neuerungen.
Greeting, Frank |
|
|
| |
|
|