Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Technical Support » Win32 FDS » How to + use of removing sfps limit
How to + use of removing sfps limit [message #206587] Tue, 04 July 2006 23:53 Go to next message
Goztow is currently offline  Goztow
Messages: 9737
Registered: March 2005
Location: Belgium
Karma: 13
General (5 Stars)
Goztoe
My question is mainly in the topic head.

1. Is removing the sfps limit of any use? Is it like the 3d9blabla - fix? Because that one did a very nice job for my vid card. Will it prevent big drops at big rushes?

2. How to do it?

Question mainly for evilWD as he talked about it but anyone can answer ofcourse Wink.


You can find me in The KOSs2 (TK2) discord while I'm playing. Feel free to come and say hi! TK2 discord
Re: How to + use of removing sfps limit [message #206592 is a reply to message #206587] Wed, 05 July 2006 00:52 Go to previous messageGo to next message
EvilWhiteDragon is currently offline  EvilWhiteDragon
Messages: 3751
Registered: October 2005
Location: The Netherlands
Karma: 0
General (3 Stars)

Well, I didn't noticed much improvement, but that might be because we don't have gigantic amouints of players on our server. But it might make some difference on large servers. I will see if we can get you a test dll for that, ok ?
A thing that I did notice was that when you set your server sfps to like 1000 that you will be likely to not get to a 1000 but more like 700-800 dependng on the speed of the machine, and it will use more CPU power.


http://www.blackintel.org/usr/evilwhitedragon/pointfix.gif
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.
Re: How to + use of removing sfps limit [message #206594 is a reply to message #206587] Wed, 05 July 2006 01:37 Go to previous messageGo to next message
Goztow is currently offline  Goztow
Messages: 9737
Registered: March 2005
Location: Belgium
Karma: 13
General (5 Stars)
Goztoe
Sure, would like a little test dll.

We got a 24 players server but cpu power already goes up to 85 % when it's full. Would still be nice to test though.


You can find me in The KOSs2 (TK2) discord while I'm playing. Feel free to come and say hi! TK2 discord
Re: How to + use of removing sfps limit [message #206599 is a reply to message #206587] Wed, 05 July 2006 02:25 Go to previous messageGo to next message
StealthEye is currently offline  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 Wink


BlackIntel admin/founder/coder
Please visit http://www.blackintel.org/
Re: How to + use of removing sfps limit [message #206600 is a reply to message #206587] Wed, 05 July 2006 02:30 Go to previous messageGo to next message
Goztow is currently offline  Goztow
Messages: 9737
Registered: March 2005
Location: Belgium
Karma: 13
General (5 Stars)
Goztoe
I'm afraid I don't know how to use a hex editor, so I'll just wait for evilwhitedragon.

You can find me in The KOSs2 (TK2) discord while I'm playing. Feel free to come and say hi! TK2 discord
Re: How to + use of removing sfps limit [message #206602 is a reply to message #206600] Wed, 05 July 2006 03:10 Go to previous messageGo to next message
EvilWhiteDragon is currently offline  EvilWhiteDragon
Messages: 3751
Registered: October 2005
Location: The Netherlands
Karma: 0
General (3 Stars)

EWD gets his info from me, so... Wink

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 Wink 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... Sad

[edit]
This was StealthEye posting, was just using his account to fix some domain name changes in other posts.. lol


http://www.blackintel.org/usr/evilwhitedragon/pointfix.gif
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

Re: How to + use of removing sfps limit [message #206605 is a reply to message #206587] Wed, 05 July 2006 04:06 Go to previous messageGo to next message
Goztow is currently offline  Goztow
Messages: 9737
Registered: March 2005
Location: Belgium
Karma: 13
General (5 Stars)
Goztoe
Danpaul can do it prolly, I'll ask him. I prefer not to break it myself Razz.

You can find me in The KOSs2 (TK2) discord while I'm playing. Feel free to come and say hi! TK2 discord
Re: How to + use of removing sfps limit [message #206609 is a reply to message #206605] Wed, 05 July 2006 06:03 Go to previous message
StealthEye is currently offline  StealthEye
Messages: 2518
Registered: May 2006
Location: The Netherlands
Karma: 0
General (2 Stars)

Then don't brake it Smile and if you do, you should have a copy of the file before it broke Wink

BlackIntel admin/founder/coder
Please visit http://www.blackintel.org/
Previous Topic: Server not in listings
Next Topic: Wierd FDS encounter<Stupid word
Goto Forum:
  


Current Time: Thu Nov 14 19:09:49 MST 2024

Total time taken to generate the page: 0.00752 seconds