mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01:00
Fixed handling of clockSkew parameter.
This commit is contained in:
parent
3cbce8e51b
commit
dd75c14dba
1 changed files with 5 additions and 4 deletions
|
@ -207,7 +207,8 @@ int main(int argc, const char* argv[]) {
|
|||
);
|
||||
QCommandLineOption clockSkewOption(
|
||||
"clockSkew",
|
||||
"Forces client instance's clock to skew for demonstration purposes."
|
||||
"Forces client instance's clock to skew for demonstration purposes.",
|
||||
"value"
|
||||
);
|
||||
// "--qmljsdebugger", which appears in output from "--help-all".
|
||||
// Those below don't seem to be optional.
|
||||
|
@ -459,10 +460,10 @@ int main(int argc, const char* argv[]) {
|
|||
// need to be in sync with any other network node. This forces clock
|
||||
// skew for the individual client
|
||||
if (parser.isSet(clockSkewOption)) {
|
||||
const char* clockSkewOption = parser.value(clockSkewOption).toStdString().c_str();
|
||||
qint64 clockSkew = atoll(clockSkewOption);
|
||||
const char* clockSkewValue = parser.value(clockSkewOption).toStdString().c_str();
|
||||
qint64 clockSkew = atoll(clockSkewValue);
|
||||
usecTimestampNowForceClockSkew(clockSkew);
|
||||
qCDebug(interfaceapp) << "clockSkewOption=" << clockSkewOption << "clockSkew=" << clockSkew;
|
||||
qCDebug(interfaceapp) << "clockSkewOption=" << clockSkewValue << "clockSkew=" << clockSkew;
|
||||
}
|
||||
|
||||
// Oculus initialization MUST PRECEDE OpenGL context creation.
|
||||
|
|
Loading…
Reference in a new issue