English
Forum

Thread-speed?

 
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:
CompileMarkSeparation
Declare 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
 
04/20/04  
 



Answer


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.904 Views

Untitledvor 0 min.
E.T.12/26/18

Themeninformationen

this Topic has 1 subscriber:

unbekannt (2x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie