One Hour One Life Forums

a multiplayer game of parenting and civilization building

You are not logged in.

#1 2019-02-09 20:05:37

jasonrohrer
Administrator
Registered: 2017-02-13
Posts: 4,805

If you want to experience lag...

Just do this:

settings/enableSpeedControlKeys.ini (set to 1)

Then in game, use these keys to control fps:

^ & * ( )

^ -- (2fps)
& -- (30fps)
* -- (60fps)
( -- (120 fps)
) -- (unlimited)

The last two only work if you're not using vsync.

Anyway, if you take it down to 30 or lower in a busy city, you will eventually experience network lag.  Turns out that only a fixed number of messages are processed by the client per frame (a bug!), so the messages pile up at lower frame rates.

When I was testing on my gaming rig, it actually has a CRT that has a bunch of refresh rates, so I run it at 85, and use vsync, so my game runs at 85 fps.  That was plenty fast to handle Chaos Eve Town without any network lag, because messages are processed 85x per second.  But on my slow laptop, FPS was dipping down to 35 or so, which wasn't enough to keep up.


Anyway, if you go down to 30 FPS in a busy area and induce network lag, going back up to 60 will let the game "catch up" eventually.

Try using the in-game /FPS command to keep track of what you're doing.


And be careful with this setting!

If you leave it on by accident, you will someday hit one of those speed keys by accident, and wonder wtf is going on.  So be sure to turn it off.


Anyway, now I'm figuring out why the messages are processed at a fixed rate per draw frame.

BTW.... jrudolf is my hero for helping me figure this out:

https://github.com/jasonrohrer/OneLife/issues/125

Offline

#2 2019-02-09 20:33:09

jasonrohrer
Administrator
Registered: 2017-02-13
Posts: 4,805

Re: If you want to experience lag...

And yes, with the fix suggested by jruldolf, this problem is solved!  Finally solved!

This has been a lurking problem that has been with us since the introduction of messages batched into frames.... 

... since   Version 153    2018-October-12

Yikes!


Anyway, I just tried playing the game with the frame rate capped at 5 FPS in a busy town, and it was totally playable and fine, with absolutely no network lag.

(You can try this yourself by turning off countingOnVsync and setting targetFrameRate to 5, both in the settings folder.)

This was probably one of the last lingering causes of the infamous "bouncing forever" or "wild bug" issue.

Client hotfix incoming.

Offline

#3 2019-02-09 21:18:48

CrazyEddie
Member
Registered: 2018-11-12
Posts: 676

Re: If you want to experience lag...

Congratulations and thanks, jrudolf and Jason!

Offline

#4 2019-02-09 21:38:00

fragilityh14
Member
Registered: 2018-03-21
Posts: 556

Re: If you want to experience lag...

wow, thanks!


Do you think this had anything to do with the disconnects upon birth?


I'll tell you what I tell all my children: Make basket, always carry food.

Listen to your mom!

Offline

#5 2019-02-10 01:34:53

jasonrohrer
Administrator
Registered: 2017-02-13
Posts: 4,805

Re: If you want to experience lag...

Yes, probably!

Offline

Board footer

Powered by FluxBB