Kouga Posted September 30, 2017 Author Share Posted September 30, 2017 I've tested this in three different ways (each with its own weird results):- On a high-profile machine with 16 GB Ram, the client claimed 1 GB. No lags on that machine, but a computer in the same network (which should cause close to no lags) experienced stuttering and npc/other player freezes. Monster pc also could join game when hosted on mid-class notebook with no lags either.- Tried running the server on a dedicated machine. Two mid-class notebooks joined the game, both got freezes and lags.Clients claimed around 260-300 MB memory with the system still having plenty of memory to spare. (around 1 GB per system)- Joined local game on same PC as server; no lags at all, despite being the same PC with 4/6 GB.- The mid-class notebooks are Win10 and Win7, the monster-machine is Win10 as well.- Tested with good graphics card and weaker one, no change in results tho. Any idea how this could be fixed? Link to comment Share on other sites More sharing options...
Randoyes Posted September 30, 2017 Share Posted September 30, 2017 What engine are you using? Link to comment Share on other sites More sharing options...
SolidLink Posted September 30, 2017 Share Posted September 30, 2017 If you unlock the CPS on the server, it shouldn't lag that much Link to comment Share on other sites More sharing options...
Kouga Posted September 30, 2017 Author Share Posted September 30, 2017 @randoyes Eclipse Engine 1.8.2@solidlink Would love to try that, how do I do that? Link to comment Share on other sites More sharing options...
Randoyes Posted September 30, 2017 Share Posted September 30, 2017 Could u send me the client so i can see how badly it lags?The problem may be on your network, have you got a good internet connection? Link to comment Share on other sites More sharing options...
SolidLink Posted September 30, 2017 Share Posted September 30, 2017 on the server, there should be a text called CPS [Unlock] Click on [Unlock] and it should increase the CPS. You can also set the server a high priority through the task manager Link to comment Share on other sites More sharing options...
Kouga Posted September 30, 2017 Author Share Posted September 30, 2017 @randoyes It's the same client as found in downloads!@solidlink Another thing I didn't see.. brb in a moment, running it on the dedicated machine to see if it's still lagging Link to comment Share on other sites More sharing options...
SolidLink Posted September 30, 2017 Share Posted September 30, 2017 It's literally right in front of the server. Just look for the text [Unlock] Link to comment Share on other sites More sharing options...
Kouga Posted September 30, 2017 Author Share Posted September 30, 2017 Yes, I saw after you mentioned it! In case it suddenly stops lagging, what's CPS doing? Link to comment Share on other sites More sharing options...
SolidLink Posted September 30, 2017 Share Posted September 30, 2017 it increases the cycles per second Link to comment Share on other sites More sharing options...
Kouga Posted September 30, 2017 Author Share Posted September 30, 2017 Okay, little update;Running two clients on the same pc of course lagged, even if not as horrible as before.The person I used to test with is kinda busy right now, here's the server's IP tho77.92.78.30:7001 Link to comment Share on other sites More sharing options...
Randoyes Posted September 30, 2017 Share Posted September 30, 2017 ill test Link to comment Share on other sites More sharing options...
SolidLink Posted September 30, 2017 Share Posted September 30, 2017 Ill get on Link to comment Share on other sites More sharing options...
Coyote Posted September 30, 2017 Share Posted September 30, 2017 What is the internet speed of the server?When you are on local it is much different than on the other IP.Are lags movement based? If so then you might wanna change the outdated eclipse movement code.Eclipse Engine 1.8.2 - Is this old engine or renewal?Try checking the things above and do the speed test on the server.Also provide the link of the engine so I can check the code If possible.:) Link to comment Share on other sites More sharing options...
SolidLink Posted September 30, 2017 Share Posted September 30, 2017 Yep it's Renewal Link to comment Share on other sites More sharing options...
Kouga Posted September 30, 2017 Author Share Posted September 30, 2017 Tried connecting via LAN to a server in our network (to work around possible WLAN weakpoints). Worked flawlessly until other player in same network joined. Again, other player had no problems at all, even when my PC hosted the server .. same network still.Yes, Renewal!EDIT: Had access to high speed internet today. No changes. It's definitely not networking. Nor Ram, as even 4 GB seem to get it running just fine.. Link to comment Share on other sites More sharing options...
Coyote Posted October 1, 2017 Share Posted October 1, 2017 Some hope for you:I had this issue on my pokemon game and one thing that I can say it that old and still used eclipse movement code is crap.If you check robins CS source etc. you can find this simple code that is working great without using elapsedtime that is causing lags in most of the times when movement related.What you should do is to go to the modGameLogic and search for Sub ProcessMovementNow replace old Select case code with this one: Select Case Player(Index).Moving Case MOVING_WALKING PlayerMovement(Index) = 1 MovementSpeed = WALK_SPEED Case MOVING_RUNNING PlayerMovement(Index) = 2 MovementSpeed = WALK_SPEED + ((GetPlayerStat(Index, Agility) + (Player(Index).Level / 25)) ^ 0.4) Case Else PlayerMovement(Index) = 0 Exit Sub End SelectWhen you are done with that go to modConstants and change the value of the WALK_SPEED to 4. You can test the things by changing the value of it. Higher value results higher speed.Should look like this: Public Const WALK_SPEED As Byte = 4Dont forget to backup your client project and src folder before this in case this is not the solution to your lags.Hope this helps :) Link to comment Share on other sites More sharing options...
Kouga Posted October 1, 2017 Author Share Posted October 1, 2017 Question 1: Why's that fix not included in the current download :'D? It improved the game extremely.. Question 2: Why'd it improve the game this much?Anyway, thank you, Coyote! :) Link to comment Share on other sites More sharing options...
Coyote Posted October 1, 2017 Share Posted October 1, 2017 Because of the time difference between server and client. Some of the engines do have this fix.It is not a problem until you make your game public on other server.Anyway not a problem :) I am glad it helped. Link to comment Share on other sites More sharing options...
General Awesome Posted October 3, 2017 Share Posted October 3, 2017 @coyote This is an extremely bad idea. This exists to ensure that the movement speed is frame-independent and based on time instead. Your solution will result in movement speed being directly tied to the FPS of the running client (i.e., slower FPS will result in slower movement, and faster FPS will result in faster movement). Link to comment Share on other sites More sharing options...
AngelR Posted October 3, 2017 Share Posted October 3, 2017 @coyote I'm going to try it. Link to comment Share on other sites More sharing options...
Randoyes Posted October 3, 2017 Share Posted October 3, 2017 You could just make the time faster, dont know if i make sence. Link to comment Share on other sites More sharing options...
Mohenjo Daro Posted October 3, 2017 Share Posted October 3, 2017 I will be looking at the code to try and find the best solution when I get the time (might be a week or two). Link to comment Share on other sites More sharing options...
Coyote Posted October 3, 2017 Share Posted October 3, 2017 Maybe , but it showed itself as a useful thing.Crystalshire is probably the best engine ever created with eclipse and it uses this code.There was a topic about this already back in 2012 or 13.For me it showed itself as a better option so. I've tested it and have it running on my game and no issues.Also when using elapsed time you walk slow then really fast and slow again. Its messed up. 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