Messages make oolite jump/lose time/something like that

For test results, bug reports, announcements of new builds etc.

Moderators: winston, another_commander, Getafix

User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Messages make oolite jump/lose time/something like that

Post by Diziet Sma »

another_commander wrote:
Can one of the Linux players please check and report back so that we can determine whether it is a problem of the eSpeak integration in Oolite in general or something Windows specific?
Very low-spec (CPU-wise) 10 year old Linux system here.

Any number of events (a missile launch, a ship appearing on scanner, etc) in Oolite can, but doesn't always, cause very momentary (and I do stress momentary) glitching in my game. Akin, perhaps, to an eye-blink. Certainly, it's only the briefest hesitation.. not what I'd call "lag". These are not long enough to cause me problems of the kind described by Richard in his original post. I turned on spoken speech and found it too sometimes caused the same extremely brief glitching, but again, not enough to cause me the slightest problems in combat or scooping.

I'd like to see reports from someone with a more powerful machine, but from what I've seen, I'm inclined to think it isn't affecting Linux.
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
richard.a.p.smith
Deadly
Deadly
Posts: 174
Joined: Mon Jun 07, 2010 9:03 am

Re: Messages make oolite jump/lose time/something like that

Post by richard.a.p.smith »

Diziet Sma wrote:
This does raise an interesting thought..

Should the F2 Options settings be recorded in the log? Might it make diagnosing certain problems easier?
On this particular point about spoken messages, if it helps, the on/off setting is recorded in the save file as far as I can tell. I couldn't work out why the spoken messages kept coming back after I'd switched them off; it was reloading a save file from before the time when I changed the setting that did it and only saving after changing made the problem go away. Rich.
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Messages make oolite jump/lose time/something like that

Post by Diziet Sma »

Yes.. that's pretty much my only niggle about Oolite.. there are a few Options settings that I think ought to be set "universal" (gamma for instance) but are instead saved on an individual game-save basis.
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Messages make oolite jump/lose time/something like that

Post by Diziet Sma »

another_commander wrote:
To be honest, I would think that spoken messages would not really be such an issue. Certainly more processing is required for them, but the actual messages get spoken in a different game thread each time so I never considered it a potential source of problems. Definitely something we need to look at.
Turns out this was originally reported in another thread almost a year ago.. In relation to which, Wildeblood has come up with a potential area of investigation to track down the problem.. (re-posting here for convenience) If he's correct, my test above was invalid, as it was performed with a joystick. Will need to re-test Linux using the keyboard.
Wildeblood wrote:
I eventually decided that the effect I was seeing was Oolite becoming unresponsive to the keyboard while console messages were written. If I'm pitching or yawing with the keyboard (hereinafter "slewing"), the slewing stops or slows for a fraction of a second as the message appears, then the orientation jumps to where it would have been if the slewing hadn't slowed down. This gives a noticeable stutter in the slewing. I guessed it was something to do with Oolite's buffering of key presses being interrupted and resuming.
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
richard.a.p.smith
Deadly
Deadly
Posts: 174
Joined: Mon Jun 07, 2010 9:03 am

Re: Messages make oolite jump/lose time/something like that

Post by richard.a.p.smith »

Diziet Sma wrote:
another_commander wrote:
To be honest, I would think that spoken messages would not really be such an issue. Certainly more processing is required for them, but the actual messages get spoken in a different game thread each time so I never considered it a potential source of problems. Definitely something we need to look at.
Turns out this was originally reported in another thread almost a year ago.. In relation to which, Wildeblood has come up with a potential area of investigation to track down the problem.. (re-posting here for convenience) If he's correct, my test above was invalid, as it was performed with a joystick. Will need to re-test Linux using the keyboard.
Wildeblood wrote:
I eventually decided that the effect I was seeing was Oolite becoming unresponsive to the keyboard while console messages were written. If I'm pitching or yawing with the keyboard (hereinafter "slewing"), the slewing stops or slows for a fraction of a second as the message appears, then the orientation jumps to where it would have been if the slewing hadn't slowed down. This gives a noticeable stutter in the slewing. I guessed it was something to do with Oolite's buffering of key presses being interrupted and resuming.
Hello. There's a bit of confusion here. I started the older thread but it didn't come to anything at the time. I forgot about that post when starting this one but remembered it along the way and checked it. I also remembered Wildeblood had seen the problem so sent a PM with the solution I found and that prompted his response which you've quoted, the problem described is precisely the one I found and got around by disabling spoken messages, his description seems better than mine and suggests how Oolite is dealing with holding a given key down but the problem itself is the lag from the console message. So it's all the same thing. Good example of a reason not to post more than once on a given topic but I didn't remember the post until too late. Rich.
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Messages make oolite jump/lose time/something like that

Post by Diziet Sma »

Mostly I was including that post in this current thread because it suggests a possible area of investigation as to how to fix things so that spoken messages don't cause lag, as ought to be the case.. :wink:
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: Messages make oolite jump/lose time/something like that

Post by cim »

Not exactly. If spoken messages cause lag, then the area to fix is probably the spoken messages routine. The key stutter Wildeblood described is expected behaviour in case of lag.

Oolite simulates the frames based on the length of game time taken for that frame, which it tries to correspond to real time if possible. So if you're pressing "right", at 60FPS you'll roll 1/60 of your roll rate each frame. If there's then something happens which causes a significant delay in the simulation, the next frame is 0.25 seconds long in game time (and at least that long in real life, too), so you roll 1/4 of your roll rate in that frame. So you end up where you "should" be afterwards, but it looks like a pause and a jump as you watch it because the "video illusion" gets broken temporarily.

Anything that causes a delay will have that visible symptom, but it's a symptom, not a cause.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Messages make oolite jump/lose time/something like that

Post by Cody »

I should say that the lag I've been experiencing seems unrelated to key presses or messages (as far as I can tell, anyway).
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6312
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Messages make oolite jump/lose time/something like that

Post by Diziet Sma »

cim wrote:
Oolite simulates the frames based on the length of game time taken for that frame, which it tries to correspond to real time if possible. So if you're pressing "right", at 60FPS you'll roll 1/60 of your roll rate each frame. If there's then something happens which causes a significant delay in the simulation, the next frame is 0.25 seconds long in game time (and at least that long in real life, too), so you roll 1/4 of your roll rate in that frame. So you end up where you "should" be afterwards, but it looks like a pause and a jump as you watch it because the "video illusion" gets broken temporarily.

Anything that causes a delay will have that visible symptom, but it's a symptom, not a cause.
Ok.. many thanks for the clarification.. just a wild guess on my part that turned out to be wrong.. (again) :mrgreen:
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: Messages make oolite jump/lose time/something like that

Post by cim »

Diziet Sma wrote:
Ok.. many thanks for the clarification.. just a wild guess on my part that turned out to be wrong.. (again) :mrgreen:
Well, keep 'em coming. Plenty of times I've been following up a wild guess and fixed a bug as a result, just not the bug that caused the guess.
User avatar
Cody
Sharp Shooter Spam Assassin
Sharp Shooter Spam Assassin
Posts: 16081
Joined: Sat Jul 04, 2009 9:31 pm
Location: The Lizard's Claw
Contact:

Re: Messages make oolite jump/lose time/something like that

Post by Cody »

cim wrote:
Well, keep 'em coming.
A dumb pilot can't resist such an invitation: would the display refresh rate have any bearing on lag?
If I was to switch my display's refresh rate from 75 to 60 - could the lag become less apparent?
I would advise stilts for the quagmires, and camels for the snowy hills
And any survivors, their debts I will certainly pay. There's always a way!
User avatar
cim
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 4072
Joined: Fri Nov 11, 2011 6:19 pm

Re: Messages make oolite jump/lose time/something like that

Post by cim »

Cody wrote:
cim wrote:
Well, keep 'em coming.
A dumb pilot can't resist such an invitation: would the display refresh rate have any bearing on lag?
If I was to switch my display's refresh rate from 75 to 60 - could the lag become less apparent?
Not completely impossible, though it would require a very particular combination of circumstances. If anything I'd expect it to make things very marginally worse most of the time, but give it a try anyway.
another_commander wrote:
Can one of the Linux players please check and report back so that we can determine whether it is a problem of the eSpeak integration in Oolite in general or something Windows specific?
Doesn't seem to be a problem on my Linux system. (~5 years old)
User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Lost in space
Contact:

Re: Messages make oolite jump/lose time/something like that

Post by Smivs »

cim wrote:
another_commander wrote:
Can one of the Linux players please check and report back so that we can determine whether it is a problem of the eSpeak integration in Oolite in general or something Windows specific?
Doesn't seem to be a problem on my Linux system. (~5 years old)
Just checked here as well - no obvious change when spoken messages are 'on'.
Commander Smivs, the friendliest Gourd this side of Riedquat.
User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2453
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: Messages make oolite jump/lose time/something like that

Post by Wildeblood »

Would now be a good time to suggest making the javascript oolite.gameSettings.speechOn read/write?
User avatar
JensAyton
Grand Admiral Emeritus
Grand Admiral Emeritus
Posts: 6657
Joined: Sat Apr 02, 2005 2:43 pm
Location: Sweden
Contact:

Re: Messages make oolite jump/lose time/something like that

Post by JensAyton »

Wildeblood wrote:
Would now be a good time to suggest making the javascript oolite.gameSettings.speechOn read/write?
No.
Post Reply