mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 21:12:53 +02: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(
|
QCommandLineOption clockSkewOption(
|
||||||
"clockSkew",
|
"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".
|
// "--qmljsdebugger", which appears in output from "--help-all".
|
||||||
// Those below don't seem to be optional.
|
// 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
|
// need to be in sync with any other network node. This forces clock
|
||||||
// skew for the individual client
|
// skew for the individual client
|
||||||
if (parser.isSet(clockSkewOption)) {
|
if (parser.isSet(clockSkewOption)) {
|
||||||
const char* clockSkewOption = parser.value(clockSkewOption).toStdString().c_str();
|
const char* clockSkewValue = parser.value(clockSkewOption).toStdString().c_str();
|
||||||
qint64 clockSkew = atoll(clockSkewOption);
|
qint64 clockSkew = atoll(clockSkewValue);
|
||||||
usecTimestampNowForceClockSkew(clockSkew);
|
usecTimestampNowForceClockSkew(clockSkew);
|
||||||
qCDebug(interfaceapp) << "clockSkewOption=" << clockSkewOption << "clockSkew=" << clockSkew;
|
qCDebug(interfaceapp) << "clockSkewOption=" << clockSkewValue << "clockSkew=" << clockSkew;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Oculus initialization MUST PRECEDE OpenGL context creation.
|
// Oculus initialization MUST PRECEDE OpenGL context creation.
|
||||||
|
|
Loading…
Reference in a new issue