English
Source / code snippets

mouse Abtastrate / Abfragerate in Hz spend (polling rate)

 

Sven
Bader
an not tidy working mouse can already nerves and the marketing knows almost only itself überschlagende DPI-numbers, thereby is the Abtastrate at least just as important. These gives on, How often - independent of the dissolution - The Mausposition quizzed becomes. in the principle sorgt a niedrige Abtastrate so too directly for a schlechtere dissolution the Mausbewegung.

i'm one Friends "schnellen" Mäusen, means of/ one high tuned Cursorgeschwindigkeit, which the trouble of/ one niedrigen Abtastrate unfortunately moreover intensifies.

to Validierung there Onlinetools, its but too in Profan simply umzusetzen. it functions integrally without API-functions (as long as one in the Window remaining) and can self in the Interpreter free from problems yet The 1.000 Hz of my mouse discern.



already beautiful, what with XProfan in 15 Lines zaubern can:
Cls
Declare timestart&, poll&, xold&, yold&

WhileNot iskey(27)

    If (%MouseX <> xOld&) OR (%MouseY <> yOld&)'Cursor moving

        inc poll&
        xold& = %MouseX
        yold& = %MouseY

    Endif

    If ((&gettickcount - timestart&) >= 1000)'a second past

        locate 1,1
        print "polling rate: " + st$(poll&) + " Hz    "
        timestart& = &gettickcount
        poll& = 0

    Endif

Endwhile


6 kB
Hochgeladen:03/06/23
Downloadcounter55
Download
 
03/06/23  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

1.138 Views

Untitledvor 0 min.
Sven Bader08/31/23
Axel Berse08/13/23
Thomas Zielinski06/28/23
E.T.06/12/23
More...

Themeninformationen

this Topic has 1 subscriber:

Sven Bader (1x)


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