Skip to content

engine.json: raise the warp speed ceiling ten times - #307

Merged
evertvorster merged 4 commits into
masterfrom
ev-bugfix-orbit-phase
Nov 7, 2026
Merged

evertvorster merged 4 commits into
masterfrom
ev-bugfix-orbit-phase

Conversation

@evertvorster

Copy link
Copy Markdown
Contributor

Thank you for submitting a pull request and becoming a contributor to Vega Strike: Upon the Coldest Sea.

Please answer the following:

Code Changes:

Issues:

  • Companion to the engine's orbit phase recovery, Vega-Strike-Engine-Source#1799.

Purpose:

  • What is this pull request trying to do?
  • Raise the warp speed ceiling so the distances the recovered orbit positions expose stay
    flyable. Pairs with Vega-Strike-Engine-Source#1799 and must land with it (see below).
  • What release is this for?
  • 0.11
  • Is there a project or milestone we should apply this to?
  • 0.11

Net change to engine.json: two keys, raised ten times.

warp.max_effective_velocity: 2.9202e10 -> 2.9202e11 m/s   (97.4c -> 974c)
warp.warp_multiplier_max:   3e8       -> 3e9

Why it belongs with #1799

The phase recovery puts a body where its orbit says it is, and keeps it there. Bodies — and therefore
targets and destinations — can now sit light-hours away and stay there. At the old ceiling that is
about 37 s per light-hour of travel; at ten times it, about 3.7 s. The position fix is what makes those
distances real, so the ceiling is its companion rather than an independent tuning change.

Why both keys

The ceiling alone would not move the top speed. The effective warp velocity is the ship's own sublight
speed times a multiplier, and that multiplier is clamped to warp_multiplier_max before the ceiling
is applied (Movable::GetMaxWarpFieldStrength). A 225 m/s ship reaches the old ceiling with a multiplier
of 1.3e8, so with warp_multiplier_max left at 3e8 the ceiling raise would have capped it at 6.75e10 m/s
— a 2.3x gain rather than 10x. With both raised, any ship doing more than about 97 m/s is ceiling-limited
again.

Ordering — please do not merge this before the step cap

At 974c a ship covers 29.2 million km per simulation atom, and at that step size nothing slows it:
the interdicting curve's onset is about 79 light-seconds from a station for a 225 m/s ship, while the
ceiling covers 97 light-seconds in one atom, so the first atom the brake applies in already overshoots
the body. That is how a ship warps straight through a base, and it is fixed by the step cap in
Vega-Strike-Engine-Source#1818 (engine) + #300 (this repository):

warp_max_step_fraction: 0.5

which holds the speed to at most half the gap to the nearest unit per atom, so the gap can never be
crossed in one. This pull request should merge with or after that pair.

Known follow-up, not a blocker

At the new ceiling the speed readout shows about 974 C, and the star streaks / warp stretch / FOV have
their saturation ranges set for the old top speed, so they will saturate. Worth a small PR of their own
once the flight testing is done.

The orbit phase recovery puts a body where its orbit says it is, which means a
target can now sit light-hours away and stay there. At the old ceiling of
2.9202e10 m/s (97c) a light-hour leg is about 37 s; at ten times that it is
about 3.7 s, so the distances the recovered positions expose stay flyable.

warp_multiplier_max is raised with it. The ceiling alone would not move the top
speed: the effective velocity is the ship's own speed times the multiplier, and
the multiplier is clamped to warp_multiplier_max before the ceiling is applied.
A 225 m/s ship reaches the old ceiling with a multiplier of 1.3e8, so at 3e8 the
multiplier would have capped it at 6.75e10 m/s as soon as the ceiling went up.

@royfalk royfalk left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with the change.

@stephengtuggy stephengtuggy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hold on here. I don't think this is right. Vega Strike has dealt with distances in terms of light-hours before, at least in the Sol system, and possibly other systems as well. But never, as far as I know, has it allowed speeds much above 97C. I don't think it should.

At a minimum, this is something we need to discuss further before merging.

@evertvorster

Copy link
Copy Markdown
Contributor Author

Hold on here. I don't think this is right. Vega Strike has dealt with distances in terms of light-hours before, at least in the Sol system, and possibly other systems as well. But never, as far as I know, has it allowed speeds much above 97C. I don't think it should.

At a minimum, this is something we need to discuss further before merging.

I don't mind waiting... when the orbital recovery PR lands, sometimes you are six or seven light hours away from Serenity when you take off from Atlantis, just because the orbiting things have been orbiting.

At that time, people will start complaining about travel times, and the fix for that is right here.

@stephengtuggy

Copy link
Copy Markdown
Contributor

Hold on here. I don't think this is right. Vega Strike has dealt with distances in terms of light-hours before, at least in the Sol system, and possibly other systems as well. But never, as far as I know, has it allowed speeds much above 97C. I don't think it should.
At a minimum, this is something we need to discuss further before merging.

I don't mind waiting... when the orbital recovery PR lands, sometimes you are six or seven light hours away from Serenity when you take off from Atlantis, just because the orbiting things have been orbiting.

At that time, people will start complaining about travel times, and the fix for that is right here.

I see. Interesting. I wonder how long it's been since orbits actually worked -- if they ever did.

@evertvorster

Copy link
Copy Markdown
Contributor Author

Oh, they never did.
The recover orbital positions is an implementation of a planned feature from that time. The shape of the code and everything pointed to the devs wanting to have proper orbiting things, but were just missing the last bit.

If we decide we DON'T want orbits, there is an alternate fix for the flinging your ship across space bug, which is to simply clamp the velocity when you take off, but where is the fun in that?

@BenjamenMeyer

Copy link
Copy Markdown
Member

Oh, they never did. The recover orbital positions is an implementation of a planned feature from that time. The shape of the code and everything pointed to the devs wanting to have proper orbiting things, but were just missing the last bit.

If we decide we DON'T want orbits, there is an alternate fix for the flinging your ship across space bug, which is to simply clamp the velocity when you take off, but where is the fun in that?

@evertvorster @stephengtuggy @royfalk I think we can all agree that having properly orbiting things is a good thing.

As to players complaining about differences in distances/times because orbits happened... well, that's part of the game and should be explained as such. Thoughts?

@kheckwrecker

Copy link
Copy Markdown

From a play test perspective, this is a big improvement. Launch to dock (both ways Atlantis and Serenity) is now approx. 3 minutes, down from over 10 minutes. On the flight to Serenity, there was a lot of slowing down and speeding up (probably due to detected obstacles?), so I'm guessing this will work even better with your avoidance PR. The flight from Serenity to Atlantis was smooth, with no slow downs during flight at all until approaching the planet, so the trip was quite quick. Once the autopilot cutoff is fixed, the flight time will probably be even quicker. Maybe too quick? Can't believe I'm saying this, but maybe raise the warp ceiling 8 or 9 times instead of 10?

@stephengtuggy stephengtuggy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay. We have actual players complaining about the flight time now. I am now prepared to give this change my approval.

Do we want to follow @kheckwrecker 's request, and multiply the speed limit by 8x or 9x rather than 10x?

@evertvorster

Copy link
Copy Markdown
Contributor Author

I am not going to merge this now.
What I am going to do, is to make this a config setting that can easily be changed.
For that to happen, the values will need to move from engine.json to config.json, and I'll do that in a commit to this PR.

warp.max_effective_velocity is a player setting now: the settings screen shows it in whole
multiples of light speed and writes it to the player's own config.json overlay. Its shipped
default belongs in the same file the overlay is read on top of, rather than in the engine
tuning file, so the default and the override are the same schema.

warp.warp_multiplier_max stays in engine.json. It is a ratio rather than a speed, nothing in
the settings exposes it, and it only has to stay ahead of the ceiling.
@evertvorster
evertvorster merged commit 5eb7c39 into master Nov 7, 2026
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants