mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 17:56:43 +02:00
Merge branch 'master' of https://github.com/worklist/hifi into 20224
This commit is contained in:
commit
525fe7881e
3 changed files with 13 additions and 7 deletions
|
@ -111,7 +111,7 @@ void drawText(int x, int y, float scale, float radians, int mono,
|
||||||
glRotated(double(radians * DEGREES_PER_RADIAN), 0.0, 0.0, 1.0);
|
glRotated(double(radians * DEGREES_PER_RADIAN), 0.0, 0.0, 1.0);
|
||||||
glScalef(scale / 0.1f, scale / 0.1f, 1.0f);
|
glScalef(scale / 0.1f, scale / 0.1f, 1.0f);
|
||||||
|
|
||||||
glm::vec4 colorV4 = {color[0], color[1], color[3], 1.0f };
|
glm::vec4 colorV4 = {color[0], color[1], color[2], 1.0f };
|
||||||
textRenderer(mono)->draw(0, 0, string, colorV4);
|
textRenderer(mono)->draw(0, 0, string, colorV4);
|
||||||
glPopMatrix();
|
glPopMatrix();
|
||||||
}
|
}
|
||||||
|
|
|
@ -271,7 +271,7 @@ void Stats::display(
|
||||||
// TODO: the display of these timing details should all be moved to JavaScript
|
// TODO: the display of these timing details should all be moved to JavaScript
|
||||||
if (_expanded && Menu::getInstance()->isOptionChecked(MenuOption::DisplayTimingDetails)) {
|
if (_expanded && Menu::getInstance()->isOptionChecked(MenuOption::DisplayTimingDetails)) {
|
||||||
// Timing details...
|
// Timing details...
|
||||||
verticalOffset += STATS_PELS_PER_LINE * 4; // skip 4 lines to be under the other columns
|
verticalOffset += STATS_PELS_PER_LINE * 6; // skip 6 lines to be under the other columns
|
||||||
drawText(columnOneHorizontalOffset, verticalOffset, scale, rotation, font,
|
drawText(columnOneHorizontalOffset, verticalOffset, scale, rotation, font,
|
||||||
"-------------------------------------------------------- Function "
|
"-------------------------------------------------------- Function "
|
||||||
"------------------------------------------------------- --msecs- -calls--", color);
|
"------------------------------------------------------- --msecs- -calls--", color);
|
||||||
|
@ -294,13 +294,14 @@ void Stats::display(
|
||||||
j.toBack();
|
j.toBack();
|
||||||
while (j.hasPrevious()) {
|
while (j.hasPrevious()) {
|
||||||
j.previous();
|
j.previous();
|
||||||
|
QChar noBreakingSpace = QChar::Nbsp;
|
||||||
QString functionName = j.value();
|
QString functionName = j.value();
|
||||||
const PerformanceTimerRecord& record = allRecords.value(functionName);
|
const PerformanceTimerRecord& record = allRecords.value(functionName);
|
||||||
|
|
||||||
QString perfLine = QString("%1: %2 [%3]").
|
QString perfLine = QString("%1: %2 [%3]").
|
||||||
arg(QString(qPrintable(functionName)), 120).
|
arg(QString(qPrintable(functionName)), 120, noBreakingSpace).
|
||||||
arg((float)record.getMovingAverage() / (float)USECS_PER_MSEC, 8, 'f', 3).
|
arg((float)record.getMovingAverage() / (float)USECS_PER_MSEC, 8, 'f', 3, noBreakingSpace).
|
||||||
arg(record.getCount(), 6);
|
arg((int)record.getCount(), 6, 10, noBreakingSpace);
|
||||||
|
|
||||||
verticalOffset += STATS_PELS_PER_LINE;
|
verticalOffset += STATS_PELS_PER_LINE;
|
||||||
drawText(columnOneHorizontalOffset, verticalOffset, scale, rotation, font, perfLine.toUtf8().constData(), color);
|
drawText(columnOneHorizontalOffset, verticalOffset, scale, rotation, font, perfLine.toUtf8().constData(), color);
|
||||||
|
|
|
@ -202,14 +202,19 @@ void AddressManager::goToAddressFromObject(const QVariantMap& dataObject, const
|
||||||
|
|
||||||
if (!domainObject.isEmpty()) {
|
if (!domainObject.isEmpty()) {
|
||||||
const QString DOMAIN_NETWORK_ADDRESS_KEY = "network_address";
|
const QString DOMAIN_NETWORK_ADDRESS_KEY = "network_address";
|
||||||
|
const QString DOMAIN_NETWORK_PORT_KEY = "network_port";
|
||||||
const QString DOMAIN_ICE_SERVER_ADDRESS_KEY = "ice_server_address";
|
const QString DOMAIN_ICE_SERVER_ADDRESS_KEY = "ice_server_address";
|
||||||
|
|
||||||
if (domainObject.contains(DOMAIN_NETWORK_ADDRESS_KEY)) {
|
if (domainObject.contains(DOMAIN_NETWORK_ADDRESS_KEY)) {
|
||||||
QString domainHostname = domainObject[DOMAIN_NETWORK_ADDRESS_KEY].toString();
|
QString domainHostname = domainObject[DOMAIN_NETWORK_ADDRESS_KEY].toString();
|
||||||
|
|
||||||
|
quint16 domainPort = domainObject.contains(DOMAIN_NETWORK_PORT_KEY)
|
||||||
|
? domainObject[DOMAIN_NETWORK_PORT_KEY].toUInt()
|
||||||
|
: DEFAULT_DOMAIN_SERVER_PORT;
|
||||||
|
|
||||||
qDebug() << "Possible domain change required to connect to" << domainHostname
|
qDebug() << "Possible domain change required to connect to" << domainHostname
|
||||||
<< "on" << DEFAULT_DOMAIN_SERVER_PORT;
|
<< "on" << domainPort;
|
||||||
emit possibleDomainChangeRequired(domainHostname, DEFAULT_DOMAIN_SERVER_PORT);
|
emit possibleDomainChangeRequired(domainHostname, domainPort);
|
||||||
} else {
|
} else {
|
||||||
QString iceServerAddress = domainObject[DOMAIN_ICE_SERVER_ADDRESS_KEY].toString();
|
QString iceServerAddress = domainObject[DOMAIN_ICE_SERVER_ADDRESS_KEY].toString();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue