mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 04:37:23 +02:00
commit
632390e6b0
4 changed files with 9 additions and 6 deletions
|
@ -129,12 +129,15 @@ def scribeLocalFile='scribe' + EXEC_SUFFIX
|
||||||
|
|
||||||
def scribeFile='scribe_linux_x86_64'
|
def scribeFile='scribe_linux_x86_64'
|
||||||
def scribeChecksum='c98678d9726bd8bbf1bab792acf3ff6c'
|
def scribeChecksum='c98678d9726bd8bbf1bab792acf3ff6c'
|
||||||
|
def scribeVersion='onfeBkJWcJiTwiGOyZPVBjlyhoYQ4Axn'
|
||||||
if (Os.isFamily(Os.FAMILY_MAC)) {
|
if (Os.isFamily(Os.FAMILY_MAC)) {
|
||||||
scribeFile = 'scribe_osx_x86_64'
|
scribeFile = 'scribe_osx_x86_64'
|
||||||
scribeChecksum='a137ad62c1bf7cca739da219544a9a16'
|
scribeChecksum='a137ad62c1bf7cca739da219544a9a16'
|
||||||
|
scribeVersion='kU.Aq512HVe65uRnkFEWQEqeQfaYF2c0'
|
||||||
} else if (Os.isFamily(Os.FAMILY_WINDOWS)) {
|
} else if (Os.isFamily(Os.FAMILY_WINDOWS)) {
|
||||||
scribeFile = 'scribe_win32_x86_64.exe'
|
scribeFile = 'scribe_win32_x86_64.exe'
|
||||||
scribeChecksum='75c2ce9ed45d17de375e3988bfaba816'
|
scribeChecksum='75c2ce9ed45d17de375e3988bfaba816'
|
||||||
|
scribeVersion='24TfWFh1FBY.t6i_LdzAXZYeQOtmQNZp'
|
||||||
}
|
}
|
||||||
|
|
||||||
def options = [
|
def options = [
|
||||||
|
@ -385,7 +388,7 @@ task copyDependencies(dependsOn: [ extractDependencies ]) {
|
||||||
}
|
}
|
||||||
|
|
||||||
task downloadScribe(type: Download) {
|
task downloadScribe(type: Download) {
|
||||||
src baseUrl + scribeFile
|
src baseUrl + scribeFile + '?versionId=' + scribeVersion
|
||||||
dest new File(baseFolder, scribeLocalFile)
|
dest new File(baseFolder, scribeLocalFile)
|
||||||
onlyIfNewer true
|
onlyIfNewer true
|
||||||
}
|
}
|
||||||
|
|
|
@ -168,7 +168,7 @@ float LODManager::getDesktopLODDecreaseFPS() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
float LODManager::getDesktopLODIncreaseFPS() const {
|
float LODManager::getDesktopLODIncreaseFPS() const {
|
||||||
return glm::max(((float)MSECS_PER_SECOND / _desktopMaxRenderTime) + INCREASE_LOD_GAP_FPS, MAX_LIKELY_DESKTOP_FPS);
|
return glm::min(((float)MSECS_PER_SECOND / _desktopMaxRenderTime) + INCREASE_LOD_GAP_FPS, MAX_LIKELY_DESKTOP_FPS);
|
||||||
}
|
}
|
||||||
|
|
||||||
void LODManager::setHMDLODDecreaseFPS(float fps) {
|
void LODManager::setHMDLODDecreaseFPS(float fps) {
|
||||||
|
@ -184,7 +184,7 @@ float LODManager::getHMDLODDecreaseFPS() const {
|
||||||
}
|
}
|
||||||
|
|
||||||
float LODManager::getHMDLODIncreaseFPS() const {
|
float LODManager::getHMDLODIncreaseFPS() const {
|
||||||
return glm::max(((float)MSECS_PER_SECOND / _hmdMaxRenderTime) + INCREASE_LOD_GAP_FPS, MAX_LIKELY_HMD_FPS);
|
return glm::min(((float)MSECS_PER_SECOND / _hmdMaxRenderTime) + INCREASE_LOD_GAP_FPS, MAX_LIKELY_HMD_FPS);
|
||||||
}
|
}
|
||||||
|
|
||||||
QString LODManager::getLODFeedbackText() {
|
QString LODManager::getLODFeedbackText() {
|
||||||
|
|
|
@ -25,7 +25,7 @@ const float DEFAULT_DESKTOP_MAX_RENDER_TIME = (float)MSECS_PER_SECOND / DEFAULT_
|
||||||
const float DEFAULT_HMD_MAX_RENDER_TIME = (float)MSECS_PER_SECOND / DEFAULT_HMD_LOD_DOWN_FPS; // msec
|
const float DEFAULT_HMD_MAX_RENDER_TIME = (float)MSECS_PER_SECOND / DEFAULT_HMD_LOD_DOWN_FPS; // msec
|
||||||
const float MAX_LIKELY_DESKTOP_FPS = 59.0f; // this is essentially, V-synch - 1 fps
|
const float MAX_LIKELY_DESKTOP_FPS = 59.0f; // this is essentially, V-synch - 1 fps
|
||||||
const float MAX_LIKELY_HMD_FPS = 74.0f; // this is essentially, V-synch - 1 fps
|
const float MAX_LIKELY_HMD_FPS = 74.0f; // this is essentially, V-synch - 1 fps
|
||||||
const float INCREASE_LOD_GAP_FPS = 15.0f; // fps
|
const float INCREASE_LOD_GAP_FPS = 10.0f; // fps
|
||||||
|
|
||||||
// The default value DEFAULT_OCTREE_SIZE_SCALE means you can be 400 meters away from a 1 meter object in order to see it (which is ~20:20 vision).
|
// The default value DEFAULT_OCTREE_SIZE_SCALE means you can be 400 meters away from a 1 meter object in order to see it (which is ~20:20 vision).
|
||||||
const float ADJUST_LOD_MAX_SIZE_SCALE = DEFAULT_OCTREE_SIZE_SCALE;
|
const float ADJUST_LOD_MAX_SIZE_SCALE = DEFAULT_OCTREE_SIZE_SCALE;
|
||||||
|
|
|
@ -396,11 +396,11 @@ QString WindowScriptingInterface::protocolSignature() {
|
||||||
}
|
}
|
||||||
|
|
||||||
int WindowScriptingInterface::getInnerWidth() {
|
int WindowScriptingInterface::getInnerWidth() {
|
||||||
return qApp->getDeviceSize().x;
|
return qApp->getWindow()->geometry().width();
|
||||||
}
|
}
|
||||||
|
|
||||||
int WindowScriptingInterface::getInnerHeight() {
|
int WindowScriptingInterface::getInnerHeight() {
|
||||||
return qApp->getDeviceSize().y;
|
return qApp->getWindow()->geometry().height() - qApp->getPrimaryMenu()->geometry().height();
|
||||||
}
|
}
|
||||||
|
|
||||||
glm::vec2 WindowScriptingInterface::getDeviceSize() const {
|
glm::vec2 WindowScriptingInterface::getDeviceSize() const {
|
||||||
|
|
Loading…
Reference in a new issue