mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 06:57:37 +02:00
fix disabling of delta sending and low res while moving
This commit is contained in:
parent
c930d058b1
commit
b288cc43a2
3 changed files with 15 additions and 10 deletions
|
@ -330,13 +330,19 @@ Menu::Menu() :
|
||||||
appInstance->getAvatar(),
|
appInstance->getAvatar(),
|
||||||
SLOT(setWantColor(bool)));
|
SLOT(setWantColor(bool)));
|
||||||
|
|
||||||
addCheckableActionToQMenuAndActionHash(debugMenu, MenuOption::DisableLowRes, NULL, NULL);
|
addCheckableActionToQMenuAndActionHash(debugMenu,
|
||||||
|
MenuOption::LowRes,
|
||||||
|
0,
|
||||||
|
true,
|
||||||
|
appInstance->getAvatar(),
|
||||||
|
SLOT(setWantLowResMoving(bool)));
|
||||||
|
|
||||||
// debugMenu->addAction("Disable Lower Resolution While Moving", this, SLOT(disableLowResMoving(bool)))->setCheckable(true);
|
addCheckableActionToQMenuAndActionHash(debugMenu,
|
||||||
|
MenuOption::DeltaSending,
|
||||||
addCheckableActionToQMenuAndActionHash(debugMenu, MenuOption::DisableDeltaSending, NULL, NULL);
|
0,
|
||||||
|
true,
|
||||||
// debugMenu->addAction("Disable Delta Sending", this, SLOT(disableDeltaSending(bool)))->setCheckable(true);
|
appInstance->getAvatar(),
|
||||||
|
SLOT(setWantDelta(bool)));
|
||||||
|
|
||||||
addCheckableActionToQMenuAndActionHash(debugMenu, MenuOption::DisableOcclusionCulling, Qt::SHIFT | Qt::Key_C);
|
addCheckableActionToQMenuAndActionHash(debugMenu, MenuOption::DisableOcclusionCulling, Qt::SHIFT | Qt::Key_C);
|
||||||
// (_occlusionCulling = debugMenu->addAction("Disable Occlusion Culling", this, SLOT(disableOcclusionCulling(bool)),
|
// (_occlusionCulling = debugMenu->addAction("Disable Occlusion Culling", this, SLOT(disableOcclusionCulling(bool)),
|
||||||
|
|
|
@ -120,8 +120,7 @@ namespace MenuOption {
|
||||||
const QString DecreaseAvatarSize = "Decrease Avatar Size";
|
const QString DecreaseAvatarSize = "Decrease Avatar Size";
|
||||||
const QString DecreaseVoxelSize = "Decrease Voxel Size";
|
const QString DecreaseVoxelSize = "Decrease Voxel Size";
|
||||||
const QString DestructiveAddVoxel = "Create Voxel is Destructive";
|
const QString DestructiveAddVoxel = "Create Voxel is Destructive";
|
||||||
const QString DisableDeltaSending = "Disable Delta Sending";
|
const QString DeltaSending = "Delta Sending";
|
||||||
const QString DisableLowRes = "Disable Lower Resolution While Moving";
|
|
||||||
const QString DisableOcclusionCulling = "Disable Occlusion Culling";
|
const QString DisableOcclusionCulling = "Disable Occlusion Culling";
|
||||||
const QString DisplayFrustum = "Display Frustum";
|
const QString DisplayFrustum = "Display Frustum";
|
||||||
const QString EchoAudio = "Echo Audio";
|
const QString EchoAudio = "Echo Audio";
|
||||||
|
@ -154,6 +153,7 @@ namespace MenuOption {
|
||||||
const QString Log = "Log";
|
const QString Log = "Log";
|
||||||
const QString LookAtIndicator = "Look-at Indicator";
|
const QString LookAtIndicator = "Look-at Indicator";
|
||||||
const QString LookAtVectors = "Look-at Vectors";
|
const QString LookAtVectors = "Look-at Vectors";
|
||||||
|
const QString LowRes = "Lower Resolution While Moving";
|
||||||
const QString Mirror = "Mirror";
|
const QString Mirror = "Mirror";
|
||||||
const QString Oscilloscope = "Audio Oscilloscope";
|
const QString Oscilloscope = "Audio Oscilloscope";
|
||||||
const QString Pair = "Pair";
|
const QString Pair = "Pair";
|
||||||
|
|
|
@ -116,8 +116,6 @@ public:
|
||||||
bool getWantOcclusionCulling() const { return _wantOcclusionCulling; }
|
bool getWantOcclusionCulling() const { return _wantOcclusionCulling; }
|
||||||
uint16_t getLeaderID() const { return _leaderID; }
|
uint16_t getLeaderID() const { return _leaderID; }
|
||||||
|
|
||||||
void setWantDelta(bool wantDelta) { _wantDelta = wantDelta; }
|
|
||||||
|
|
||||||
void setWantOcclusionCulling(bool wantOcclusionCulling) { _wantOcclusionCulling = wantOcclusionCulling; }
|
void setWantOcclusionCulling(bool wantOcclusionCulling) { _wantOcclusionCulling = wantOcclusionCulling; }
|
||||||
|
|
||||||
void setHeadData(HeadData* headData) { _headData = headData; }
|
void setHeadData(HeadData* headData) { _headData = headData; }
|
||||||
|
@ -127,6 +125,7 @@ public slots:
|
||||||
void sendData();
|
void sendData();
|
||||||
void setWantLowResMoving(bool wantLowResMoving) { _wantLowResMoving = wantLowResMoving; }
|
void setWantLowResMoving(bool wantLowResMoving) { _wantLowResMoving = wantLowResMoving; }
|
||||||
void setWantColor(bool wantColor) { _wantColor = wantColor; }
|
void setWantColor(bool wantColor) { _wantColor = wantColor; }
|
||||||
|
void setWantDelta(bool wantDelta) { _wantDelta = wantDelta; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
glm::vec3 _position;
|
glm::vec3 _position;
|
||||||
|
|
Loading…
Reference in a new issue