Call timeBeginPeriod() and then write a function to measure sleep(1) granularity.. it should return about 1.95 (ie: sleep(1) will return 1.95 while timeBeginPeriod() is being run)
At 07:20 AM 8/11/2006, Frazer wrote:
It sounds like your knowledge of hardware is beyond mine. When I said 1ms, that was based on the Microsoft documentation for the api: timeBeginPeriod The timeBeginPeriod function sets the minimum timer resolution for an application or device driver. MMRESULT timeBeginPeriod( UINT uPeriod ); Parameters uPeriod Minimum timer resolution, in milliseconds, for the application or device driver. No matter what, it seems pretty clear that the practical ceiling for srds is 512fps. Frazer -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gary Sent: Friday, August 11, 2006 6:48 AM To: [email protected]; [email protected] Subject: RE: [hlds] ogsWatcher 1.0.6 Now Available It's not 1ms, it's more like 1.95 (1000 / 1.95 = 512) .. only way to increase it's granularity is to switch to a HAL that doesn't do ACPI (which is only on single processor computers) At 12:41 AM 8/11/2006, Frazer wrote: >I use the Multimedia SDK timeBeginPeriod and timeEndPeriod APIs. These >are frequently used for multimedia or game applications, because they >change the resolution of the internal scheduler and can speed up timing >loops, for example. Srcds and I believe hlds both get some advantage >from this - at a cost to other system resources. Unfortunately, the >lowest one can set the resolution with the timeBeginPeriod call is 1 ms. - which is what I do. >This seems to limit srcds to about 512fps, plus or minus. > >I have read other threads about REALLY high precision timers, but I >have not seen any concrete postings that describe a way of getting beyond 512fps. >Perhaps others have? I am not the best person to voice an opinion on >this >but: I wonder if one would really see much advantage, on the game >client, if the server framerate was that high? > >On the topic of hlds - ogsWatcher is currently only designed to support >srcds. Is there a community interest in extending it to work with hlds? > >Frazer > > > >-----Original Message----- >From: [EMAIL PROTECTED] >[mailto:[EMAIL PROTECTED] On Behalf Of Spectre >Sent: Thursday, August 10, 2006 9:24 PM >To: [email protected] >Subject: Re: [hlds] ogsWatcher 1.0.6 Now Available > >I got only 512FPS on my HLDS, is it possible to make timer even faster >and get 1000fps with this tool? > > >----- Original Message ----- >From: "Frazer" <[EMAIL PROTECTED]> >To: <[email protected]> >Sent: Friday, August 11, 2006 4:12 AM >Subject: [hlds] ogsWatcher 1.0.6 Now Available > > > > ogsWatcher 1.0.6 is now available for download at > > http://gearbox.oathill.com/cbb/files/16/default.aspx. > > > > This version marks the end of beta-testing, although version > > numbering has been preserved. > > > > This release includes the following changes or additions: > > > > 1. The embedding high-precision timer, to support server FPS rates > > over 300, has been fixed and now works correctly. > > > > 2. An "Enabled" attribute has been added to individual game > > configuration sections, in the config file, so that games can be > > "turned off" without deleting or replacing the config file. > > > > 3. A LocalIPAddress and LocalPort attribute have been added to > > allow for explicit binding of the local IP endpoint to ogsWatcher - > > useful in multi-interface hosts. > > > > 4. The AutoUpdate option has been removed. (stinkin' bad idea - > > better to use hldsupdate tool) > > > > Once again, I would like to thank Adam Sando for his patient > > testing, for noticing the high-precision timer bug, for reporting > > his problem with a dual interface server and for the Enabled switch suggestion. > > > > ogsWatcher is a free Windows service which provides the means to > > declaratively configure multiple Source game instances (DOD:S, CSS, > > etc) and to automatically run those games servers as either > > background or foreground tasks. Key features include: > > > > - easy configuration via an XML config file > > - many configurable settings including CVars, process priority, > > srcds command line parameters and more > > - runs as a true Windows service with automatic start and recovery > > capabilities > > - embedded high precision timer to enable higher server FPS > > - srcds tasks can be run in foreground or background > > - monitors game server instances and automatically restarts failed > > servers > > - graceful shutdown closes log files correctly > > - detailed documentation > > > > > > Cheers, > > Frazer > > > > > > > > > > _______________________________________________ > > To unsubscribe, edit your list preferences, or view the list > > archives, please visit: > > http://list.valvesoftware.com/mailman/listinfo/hlds > > >_______________________________________________ >To unsubscribe, edit your list preferences, or view the list archives, >please visit: >http://list.valvesoftware.com/mailman/listinfo/hlds > > >_______________________________________________ >To unsubscribe, edit your list preferences, or view the list archives, >please visit: >http://list.valvesoftware.com/mailman/listinfo/hlds _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds
_______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlds

