mirror of
https://github.com/DrBeef/RTCWQuest.git
synced 2024-11-13 00:04:09 +00:00
Updated to fix FOV issues
This commit is contained in:
parent
2aecd83db1
commit
c45b6046a6
5 changed files with 15 additions and 9 deletions
|
@ -1,8 +1,8 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.drbeef.rtcwquest"
|
||||
android:versionCode="42"
|
||||
android:versionName="1.1.4" android:installLocation="auto" >
|
||||
android:versionCode="43"
|
||||
android:versionName="1.1.5" android:installLocation="auto" >
|
||||
|
||||
<!-- Tell the system this app requires OpenGL ES 3.1. -->
|
||||
<uses-feature android:glEsVersion="0x00030001" android:required="true"/>
|
||||
|
|
|
@ -702,7 +702,7 @@ void ovrRenderer_Create( int width, int height, ovrRenderer * renderer, const ov
|
|||
renderer->NumBuffers = VRAPI_FRAME_LAYER_EYE_MAX;
|
||||
|
||||
//Now using a symmetrical render target, based on the horizontal FOV
|
||||
vr.fov = vrapi_GetSystemPropertyInt( java, VRAPI_SYS_PROP_SUGGESTED_EYE_FOV_DEGREES_X);
|
||||
vr.fov = vrapi_GetSystemPropertyInt( java, VRAPI_SYS_PROP_SUGGESTED_EYE_FOV_DEGREES_Y);
|
||||
|
||||
// Create the render Textures.
|
||||
for ( int eye = 0; eye < VRAPI_FRAME_LAYER_EYE_MAX; eye++ )
|
||||
|
@ -1463,6 +1463,11 @@ void RTCWVR_incrementFrameIndex();
|
|||
void shutdownVR();
|
||||
int VR_main( int argc, char* argv[] );
|
||||
|
||||
int GetRefresh()
|
||||
{
|
||||
return vrapi_GetSystemPropertyInt(&java, VRAPI_SYS_PROP_DISPLAY_REFRESH_RATE);
|
||||
}
|
||||
|
||||
void * AppThreadFunction(void * parm ) {
|
||||
gAppThread = (ovrAppThread *) parm;
|
||||
|
||||
|
|
|
@ -42,7 +42,7 @@ If you have questions concerning this license or the applicable additional terms
|
|||
// q_shared.h -- included first by ALL program modules.
|
||||
// A user mod should never modify this file
|
||||
|
||||
#define Q3_VERSION "RTCWQuest 1.1.4 (Wolf 1.41)"
|
||||
#define Q3_VERSION "RTCWQuest 1.1.5 (Wolf 1.41)"
|
||||
// ver 1.0.0 - release
|
||||
// ver 1.0.1 - post-release work
|
||||
// ver 1.1.0 - patch 1 (12/12/01)
|
||||
|
|
|
@ -62,7 +62,6 @@ cvar_t *com_timescale;
|
|||
cvar_t *com_fixedtime;
|
||||
cvar_t *com_dropsim; // 0.0 to 1.0, simulated packet drops
|
||||
cvar_t *com_journal;
|
||||
cvar_t *com_maxfps;
|
||||
cvar_t *com_timedemo;
|
||||
cvar_t *com_sv_running;
|
||||
cvar_t *com_cl_running;
|
||||
|
@ -2034,7 +2033,6 @@ void Com_Init( char *commandLine ) {
|
|||
//
|
||||
// init commands and vars
|
||||
//
|
||||
com_maxfps = Cvar_Get( "com_maxfps", "85", CVAR_ARCHIVE );
|
||||
com_blood = Cvar_Get( "com_blood", "1", CVAR_ARCHIVE );
|
||||
|
||||
com_developer = Cvar_Get( "developer", "0", CVAR_TEMP );
|
||||
|
@ -2276,6 +2274,7 @@ int Com_ModifyMsec( int msec ) {
|
|||
Com_Frame
|
||||
=================
|
||||
*/
|
||||
int GetRefresh();
|
||||
void Com_Frame( void ) {
|
||||
|
||||
int msec, minMsec;
|
||||
|
@ -2327,8 +2326,8 @@ void Com_Frame( void ) {
|
|||
}
|
||||
|
||||
// we may want to spin here if things are going too fast
|
||||
if ( !com_dedicated->integer && com_maxfps->integer > 0 && !com_timedemo->integer ) {
|
||||
minMsec = 1000 / com_maxfps->integer;
|
||||
if ( !com_dedicated->integer && GetRefresh() > 0 && !com_timedemo->integer ) {
|
||||
minMsec = 1000 / GetRefresh();
|
||||
} else {
|
||||
minMsec = 1;
|
||||
}
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module external.linked.project.id=":VrSamples:RTCWQuest" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/Projects/Android" external.system.id="GRADLE" type="JAVA_MODULE" version="4">
|
||||
<module external.linked.project.id=":VrSamples:RTCWQuest" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$/Projects/Android" external.system.id="GRADLE" external.system.module.group="RTCWQuest.VrSamples" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
|
||||
<component name="FacetManager">
|
||||
<facet type="android-gradle" name="Android-Gradle">
|
||||
<configuration>
|
||||
<option name="GRADLE_PROJECT_PATH" value=":VrSamples:RTCWQuest" />
|
||||
<option name="LAST_SUCCESSFUL_SYNC_AGP_VERSION" />
|
||||
<option name="LAST_KNOWN_AGP_VERSION" />
|
||||
</configuration>
|
||||
</facet>
|
||||
<facet type="java-gradle" name="Java-Gradle">
|
||||
|
|
Loading…
Reference in a new issue