One Hour One Life Forums

a multiplayer game of parenting and civilization building

You are not logged in.

#1 2019-04-11 19:50:57

futurebird
Member
Registered: 2019-02-20
Posts: 1,553

Lag

Lag can be a server-side issue, an issue with your computer, or your internet connection or the network. I have found that it's important to be careful of other programs running to minimize lag. Beyond that I don't know what causes it. It's a gaming trope to complain that lag killed you, but in my last life it did. What I get my avatar moves in slow motion and others zip around. My hunger bar doesn't change then suddenly drops 4 pips.

Anyone else run in to this? Any tips to avoid it?


---
omnem cibum costis
tantum baca, non facies opus

Offline

#2 2019-04-11 20:09:28

BlueDiamondAvatar
Member
Registered: 2018-11-19
Posts: 322

Re: Lag

Tip number 1)  Don't use AWBZ.  Or if you do, keep it very tightly zoomed in.  I get a lot more lag when I'm using the mod.

There are some commands Jason added to help you figure out what is causing your particular problems

/ping will tell you the status of your connection to the server
/fps will tell you your framerate - AFAIK this is diagnostic of how well your computer is handling the graphics


--Blue Diamond

I aim to leave behind a world that is easier for people to live in that it was before I got there.

Offline

#3 2019-04-22 19:31:09

Léonard
Member
Registered: 2019-01-05
Posts: 205

Re: Lag

Sorry for a late reply.

The game moving in slow motion is a sign of FPS lag.
The game is coded to only work with a fixed framerate so when your FPS goes down for whatever reason, the game literally slows down instead of accounting for it.
This also means that the only solution is to lower your target framerate and is what Jason actually wants people to do in response to the problem.
In short, rather than profit of higher framerate whenever you can, Jason would rather have you constantly play with low eye-tearing FPS.

If you actually want to profit of high framerate without being negatively affected by FPS lag (ie still using zoom or things like that) then I do have a client that fixes this issue and makes the game work with variable framerate.
The client is a fork of OHOL+ from Awbz so you can use the zoom feature and even zoom out completely and still move at realtime speed if you want.
If you're interested I'll happily share a binary of my client later.

Offline

#4 2019-04-22 20:35:24

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

Re: Lag

This is actually a hard problem to solve nicely.

In order to have smooth animations, a fixed framerate is necessary.  A true variable frame rate looks pretty bad (to my eye), and has other weird problems (if one frame takes a long time to draw for whatever reason (hiccup), then a character can zoom across the screen, etc... it's definitely non-trivial to deal with every case), and finally, the way the whole "recordedGame" thing works really depends on a fixed frame rate.

Anyway, to deal with temporary slow-downs, I did try dynamically reducing the fixed frame rate when necessary.  The problem is that it takes some number of frames to detect a slow down or the end of a slow-down.  So your character slows down for a bit, and then finally the lower FPS kicks in, and then your character starts moving at normal speed again.  That part is okay.  The bad part is on the flipside, when the frame rate speeds back up again, before the speed-up is detected.  Then your character zooms quickly for a bit.  And trust me, that's way worse than slow-down.  Your character is totally out of control and crazy looking during speed-up.

So I tried this long ago, and decided it was too jarring, and took it out.


Anyway, to figure out what's going on, try the /FPS command in chat.

There's also a chance that, due to vsync, you're jumping instantly from 60 fps down to 30fps (from one frame every sync to one frame every two syncs).

There's also an issue with graphics cards getting overheated, which will reduce your FPS later in your play session.

Offline

Board footer

Powered by FluxBB