nickko Posted November 22, 2009 Author Share Posted November 22, 2009 This is my Source code tutorial for improved client side FPS and fluency.First we start by opening the ModGameLogic module.Find This peice of code in the GameLoop Sub```' Lock fps Do While GetTickCount < Tick + 31 DoEvents Sleep 1```Change the code to```' Lock fps Do While GetTickCount < Tick + 12 DoEvents Sleep 1```This will lock the FPS at a much more acceptable rate, 64 FPS. But if you just leave it this way players will walk and run way to fast so…In modConstants find your speed movement variables.```' Speed moving varsPublic Const WALK_SPEED = 1Public Const RUN_SPEED = 2Public Const GM_WALK_SPEED = 1Public Const GM_RUN_SPEED = 2Public SS_WALK_SPEEDPublic SS_RUN_SPEED' Set the variable to your desire,' 32 is a safe and recommended setting```Essentially the rule is 32 FPS double it, 64 FPS tripple the numbers so if your not modifying this code in any way the correct numbers are```' Speed moving varsPublic Const WALK_SPEED = 2Public Const RUN_SPEED = 4Public Const GM_WALK_SPEED = 2Public Const GM_RUN_SPEED = 4Public SS_WALK_SPEEDPublic SS_RUN_SPEED' Set the variable to your desire,' 32 is a safe and recommended setting```[Video Example](http://www.youtube.com/watch?v=WLJGEUfhGXY&feature=player_embedded)Also Special thanks to scorpious2k for his Desynch fix tutorial.Thank you and communicate your results here. Link to comment Share on other sites More sharing options...
nickko Posted November 22, 2009 Author Share Posted November 22, 2009 wow…no thoughts? Link to comment Share on other sites More sharing options...
damian666 Posted November 22, 2009 Share Posted November 22, 2009 not bad at all, dont think it suits all games, but its great for me ^^Damian666 Link to comment Share on other sites More sharing options...
Drummerpete Posted November 22, 2009 Share Posted November 22, 2009 This is awesome! Link to comment Share on other sites More sharing options...
Ruins of Hell Posted November 22, 2009 Share Posted November 22, 2009 This is awesome :D. Link to comment Share on other sites More sharing options...
nickko Posted November 22, 2009 Author Share Posted November 22, 2009 Thanks…. Link to comment Share on other sites More sharing options...
xeross Posted November 22, 2009 Share Posted November 22, 2009 Running and walking speed should be unrelated to fps. Link to comment Share on other sites More sharing options...
nickko Posted November 22, 2009 Author Share Posted November 22, 2009 I agree but they are…lol Link to comment Share on other sites More sharing options...
Robin Posted November 22, 2009 Share Posted November 22, 2009 Why the hell would you allow movement speed to be handled client side?If a game changes because of a change in FPS cap, you're doing something wrong. Link to comment Share on other sites More sharing options...
shadowwulf Posted November 22, 2009 Share Posted November 22, 2009 i havent had anyone complain of fps or anything. If they do ill try this out. Link to comment Share on other sites More sharing options...
nickko Posted November 23, 2009 Author Share Posted November 23, 2009 …Thats the standard eclipse source code, dont fucking blame me. Link to comment Share on other sites More sharing options...
Robin Posted November 23, 2009 Share Posted November 23, 2009 @Nikola:> …Thats the standard eclipse source code, dont ducking blame me.Then change it. This doesn't 'improve' the FPS, it just hightens the cap. Which, I might add, will often do fuck all because Eclipse is so bloated. When I read the title of this topic, I expected you to remove the BitBlt, or the looped rendering, or some sort of optimisation.Instead, it's just changing a number. Link to comment Share on other sites More sharing options...
nickko Posted November 23, 2009 Author Share Posted November 23, 2009 Yea but it works don't it? Link to comment Share on other sites More sharing options...
Marsh Posted November 23, 2009 Share Posted November 23, 2009 It still can help people and thats all that matters. Link to comment Share on other sites More sharing options...
Robin Posted November 23, 2009 Share Posted November 23, 2009 @Marsh:> It still can help people and thats all that matters.Raising the FPS cap and the movement speed variables will cause more harm than good. It'll only give a slight visual improvement to those who have computers which can run Eclipse at 60fps+, whereas everyone else will have the entire game slow down.If one player has 60 fps, and one has 30 fps and they're doing some PvP, the player with 60 fps will run twice as fast as the other.Even though this is a problem with the default source code, this tutorial just makes the problem more pronounced. Link to comment Share on other sites More sharing options...
Akselj Posted November 24, 2009 Share Posted November 24, 2009 My engine hits 500 FPS xD Link to comment Share on other sites More sharing options...
Ruins of Hell Posted November 24, 2009 Share Posted November 24, 2009 @[SMB:> AkselJ link=topic=54439.msg578029#msg578029 date=1259097293]> My engine hits 500 FPS xDOfcourse, that means nothing if you have 2 people on ;D.Won't this hurt computers that don't have the FPS to run this? Link to comment Share on other sites More sharing options...
nickko Posted November 24, 2009 Author Share Posted November 24, 2009 Absolutley not, my shitty laptop is running the game at 64FPS Link to comment Share on other sites More sharing options...
Akselj Posted November 25, 2009 Share Posted November 25, 2009 How shitty? Shitty is a widely used expression ya know. Link to comment Share on other sites More sharing options...
nickko Posted November 25, 2009 Author Share Posted November 25, 2009 Shitty as in 98 shitty Link to comment Share on other sites More sharing options...
azkanan Posted November 25, 2009 Share Posted November 25, 2009 @[SMB:> AkselJ link=topic=54439.msg578029#msg578029 date=1259097293]> My engine hits 500 FPS xDYour mother hits 500 FPS xDDCouldn't resist, I love you really. <3 Link to comment Share on other sites More sharing options...
Akselj Posted November 26, 2009 Share Posted November 26, 2009 I got pwnt XD Link to comment Share on other sites More sharing options...
kanechart Posted December 4, 2009 Share Posted December 4, 2009 My suggestion is offer a config file or add into the normal one so users can selection in options 32 or 64 then everyone wins? Link to comment Share on other sites More sharing options...
Robin Posted December 4, 2009 Share Posted December 4, 2009 @Kanõ:> My suggestion is offer a config file or add into the normal one so users can selection in options 32 or 64 then everyone wins?Again, walking speed is based on FPS for some stupid reason, so no matter what you do Eclipse will be very insecure till you fix that.Whoever runs at 64fps will run twice as fast as someone at 32fps. Link to comment Share on other sites More sharing options...
shadowwulf Posted December 5, 2009 Share Posted December 5, 2009 why dont you just force the fps to be 32 or 64… give or take a very small variance Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now