Home » Technical Support » Win32 FDS » How to + use of removing sfps limit
|
|
|
Re: How to + use of removing sfps limit [message #206599 is a reply to message #206587] |
Wed, 05 July 2006 02:25 |
StealthEye
Messages: 2518 Registered: May 2006 Location: The Netherlands
Karma: 0
|
General (2 Stars) |
|
|
I assume you know how to use a hex editor...
First calculate the frame time, by default it is 16ms, that means FPS is limited to 62,5 (1/0.016=62,5) For a FPS of 100 for example, use 1/100 = 0.010 seconds, = 10 ms (0x0A in hex)
Now change the bytes at offset 0x0003BAB9 and 0x0003BAC0 from 0x10 to the value you have just calculated, so change it to 0x0A to set the limit to 100.
The max number we support to be changed by the !sfps command we use is 1000 (0x01), I have not tested what would happen when you change it to 0, you could try that if you want no limit at all, but I'm not sure whether it works properly! 1000 FPS is probably enough though
|
|
|
|
Re: How to + use of removing sfps limit [message #206602 is a reply to message #206600] |
Wed, 05 July 2006 03:10 |
|
EvilWhiteDragon
Messages: 3751 Registered: October 2005 Location: The Netherlands
Karma: 0
|
General (3 Stars) |
|
|
EWD gets his info from me, so...
I think the best thing you coul do is just find some hex editor (I especially like ultraedit, although it's a little odd with hex sometimes) then open server.dat, press ctrl+g or find the option to "find offset" or "goto offset" or something, enter the offsets I have just posted and you should see the 10 appear, be sure to enter hex data there, you can convert between hex and decimal in windows calc for exaqmple.
It sounds harder than it is in this explanation, it's not too hard to do really, and it will make it easier to try with different settings Though as evil already said it doesn't seem to make a big difference (eg. setting it to 8 FPS for a one player test server did not alter gameplay/lag much when we tested it I think).
It just isn't that easy to release this as you might want to try with different settings, and the way the chat commands are currently working it would be a big hassle to release the !sfps scripts.dll, for example which users would have permission to change it, etc...
[edit]
This was StealthEye posting, was just using his account to fix some domain name changes in other posts.. lol
BlackIntel admin/founder/PR dude (not a coder)
Please visit http://www.blackintel.org/
V, V for Vendetta | People should not be afraid of their governments.
Governments should be afraid of their people.
|
[Updated on: Wed, 05 July 2006 03:11] Report message to a moderator
|
|
|
|
|
Goto Forum:
Current Time: Tue Jan 21 12:53:47 MST 2025
Total time taken to generate the page: 0.00813 seconds
|