mirror of
https://github.com/DrBeef/ioq3quest.git
synced 2025-02-16 00:51:05 +00:00
Merge branch 'master' into multiview
This commit is contained in:
commit
2b2748b9f9
5 changed files with 42 additions and 18 deletions
5
Makefile
5
Makefile
|
@ -442,11 +442,8 @@ ifeq ($(PLATFORM),android)
|
||||||
-fno-builtin-cos -fno-builtin-sin -fPIC -DARCH_STRING=\\\"$(ARCH)\\\"
|
-fno-builtin-cos -fno-builtin-sin -fPIC -DARCH_STRING=\\\"$(ARCH)\\\"
|
||||||
CLIENT_CFLAGS += $(SDL_CFLAGS) -DSDL_DISABLE_IMMINTRIN_H -fno-builtin-cos -fno-builtin-sin
|
CLIENT_CFLAGS += $(SDL_CFLAGS) -DSDL_DISABLE_IMMINTRIN_H -fno-builtin-cos -fno-builtin-sin
|
||||||
|
|
||||||
# Flag -ffast-math replacement: https://pspdfkit.com/blog/2021/understanding-fast-math/
|
|
||||||
# Flags -ffp-contract=fast -fno-trapping-math are unused because they are causing lightmap issues
|
|
||||||
OPTIMIZEFASTMATH = -ffinite-math-only -fno-math-errno -fassociative-math -freciprocal-math -fno-signed-zeros
|
|
||||||
OPTIMIZEVM = -O3 -funroll-loops -fomit-frame-pointer
|
OPTIMIZEVM = -O3 -funroll-loops -fomit-frame-pointer
|
||||||
OPTIMIZE = $(OPTIMIZEVM) $(OPTIMIZEFASTMATH)
|
OPTIMIZE = $(OPTIMIZEVM) -ffast-math
|
||||||
|
|
||||||
HAVE_VM_COMPILED = false
|
HAVE_VM_COMPILED = false
|
||||||
|
|
||||||
|
|
|
@ -3577,9 +3577,10 @@ void CL_Init( void ) {
|
||||||
|
|
||||||
cl_serverStatusResendTime = Cvar_Get ("cl_serverStatusResendTime", "750", 0);
|
cl_serverStatusResendTime = Cvar_Get ("cl_serverStatusResendTime", "750", 0);
|
||||||
|
|
||||||
// init autoswitch so the ui will have it correctly even
|
// init autoswitch and hud toggle so the ui will have it correctly even
|
||||||
// if the cgame hasn't been started
|
// if the cgame hasn't been started
|
||||||
Cvar_Get ("cg_autoswitch", "1", CVAR_ARCHIVE);
|
Cvar_Get ("cg_autoswitch", "1", CVAR_ARCHIVE);
|
||||||
|
Cvar_Get ("cg_drawStatus", "1", CVAR_ARCHIVE);
|
||||||
|
|
||||||
m_pitch = Cvar_Get ("m_pitch", "0.022", CVAR_ARCHIVE);
|
m_pitch = Cvar_Get ("m_pitch", "0.022", CVAR_ARCHIVE);
|
||||||
m_yaw = Cvar_Get ("m_yaw", "0.022", CVAR_ARCHIVE);
|
m_yaw = Cvar_Get ("m_yaw", "0.022", CVAR_ARCHIVE);
|
||||||
|
|
|
@ -336,11 +336,7 @@ static void GLSL_GetShaderHeader( GLenum shaderType, const GLchar *extra, char *
|
||||||
Q_strcat(dest, size, "layout(num_views=NUM_VIEWS) in;\n");
|
Q_strcat(dest, size, "layout(num_views=NUM_VIEWS) in;\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
// HACK: use in main menu medium float precision (to prevent issue with missing models textures)
|
Q_strcat(dest, size, "precision mediump float;\n");
|
||||||
if (Cvar_Get("r_uiFullScreen", "1", 0)->integer)
|
|
||||||
Q_strcat(dest, size, "precision mediump float;\n");
|
|
||||||
else
|
|
||||||
Q_strcat(dest, size, "precision highp float;\n");
|
|
||||||
|
|
||||||
if(shaderType == GL_VERTEX_SHADER)
|
if(shaderType == GL_VERTEX_SHADER)
|
||||||
{
|
{
|
||||||
|
|
|
@ -382,7 +382,7 @@ itemDef {
|
||||||
name options
|
name options
|
||||||
group grpOptions
|
group grpOptions
|
||||||
type ITEM_TYPE_MULTI
|
type ITEM_TYPE_MULTI
|
||||||
text "Statusbar:"
|
text "HUD Type:"
|
||||||
cvar "cg_hudfiles"
|
cvar "cg_hudfiles"
|
||||||
cvarStrList { Normal "ui/hud.txt" Small "ui/hud2.txt" }
|
cvarStrList { Normal "ui/hud.txt" Small "ui/hud2.txt" }
|
||||||
rect 50 275 200 20
|
rect 50 275 200 20
|
||||||
|
@ -398,8 +398,8 @@ itemDef {
|
||||||
name options
|
name options
|
||||||
group grpOptions
|
group grpOptions
|
||||||
type ITEM_TYPE_YESNO
|
type ITEM_TYPE_YESNO
|
||||||
text "Statusbar On Weapon Wheel:"
|
text "Draw HUD:"
|
||||||
cvar "vr_weaponSelectorWithHud"
|
cvar "cg_drawStatus"
|
||||||
rect 50 292 200 20
|
rect 50 292 200 20
|
||||||
textalign ITEM_ALIGN_RIGHT
|
textalign ITEM_ALIGN_RIGHT
|
||||||
textalignx 143
|
textalignx 143
|
||||||
|
@ -409,6 +409,21 @@ itemDef {
|
||||||
visible 1
|
visible 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
itemDef {
|
||||||
|
name options
|
||||||
|
group grpOptions
|
||||||
|
type ITEM_TYPE_YESNO
|
||||||
|
text "Draw HUD On Weapon Wheel:"
|
||||||
|
cvar "vr_weaponSelectorWithHud"
|
||||||
|
rect 50 309 200 20
|
||||||
|
textalign ITEM_ALIGN_RIGHT
|
||||||
|
textalignx 143
|
||||||
|
textaligny 17
|
||||||
|
textscale .25
|
||||||
|
forecolor 1 1 1 1
|
||||||
|
visible 1
|
||||||
|
}
|
||||||
|
|
||||||
itemDef {
|
itemDef {
|
||||||
name options
|
name options
|
||||||
group grpOptions
|
group grpOptions
|
||||||
|
@ -416,7 +431,7 @@ itemDef {
|
||||||
type ITEM_TYPE_MULTI
|
type ITEM_TYPE_MULTI
|
||||||
cvar "vr_goreLevel"
|
cvar "vr_goreLevel"
|
||||||
cvarFloatList { "None" 0 "Blood Only" 1 "Blood & Gibs (Default)" 2 "Extra Gore (Performance Hit)" 3 }
|
cvarFloatList { "None" 0 "Blood Only" 1 "Blood & Gibs (Default)" 2 "Extra Gore (Performance Hit)" 3 }
|
||||||
rect 50 329 200 20
|
rect 50 339 200 20
|
||||||
textalign ITEM_ALIGN_RIGHT
|
textalign ITEM_ALIGN_RIGHT
|
||||||
textalignx 80
|
textalignx 80
|
||||||
textaligny 17
|
textaligny 17
|
||||||
|
|
|
@ -263,7 +263,7 @@ itemDef {
|
||||||
name options
|
name options
|
||||||
group grpOptions
|
group grpOptions
|
||||||
type ITEM_TYPE_MULTI
|
type ITEM_TYPE_MULTI
|
||||||
text "Statusbar:"
|
text "HUD Type:"
|
||||||
cvar "cg_hudfiles"
|
cvar "cg_hudfiles"
|
||||||
cvarStrList { Normal "ui/hud.txt" Small "ui/hud2.txt" }
|
cvarStrList { Normal "ui/hud.txt" Small "ui/hud2.txt" }
|
||||||
rect 99 315 256 20
|
rect 99 315 256 20
|
||||||
|
@ -279,8 +279,8 @@ itemDef {
|
||||||
name options
|
name options
|
||||||
group grpOptions
|
group grpOptions
|
||||||
type ITEM_TYPE_YESNO
|
type ITEM_TYPE_YESNO
|
||||||
text "Statusbar On Weapon Wheel:"
|
text "Draw HUD:"
|
||||||
cvar "vr_weaponSelectorWithHud"
|
cvar "cg_drawStatus"
|
||||||
rect 99 335 256 20
|
rect 99 335 256 20
|
||||||
textalign ITEM_ALIGN_RIGHT
|
textalign ITEM_ALIGN_RIGHT
|
||||||
textalignx 128
|
textalignx 128
|
||||||
|
@ -290,6 +290,21 @@ itemDef {
|
||||||
visible 1
|
visible 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
itemDef {
|
||||||
|
name options
|
||||||
|
group grpOptions
|
||||||
|
type ITEM_TYPE_YESNO
|
||||||
|
text "Draw HUD On Weapon Wheel:"
|
||||||
|
cvar "vr_weaponSelectorWithHud"
|
||||||
|
rect 99 355 256 20
|
||||||
|
textalign ITEM_ALIGN_RIGHT
|
||||||
|
textalignx 128
|
||||||
|
textaligny 20
|
||||||
|
textscale .3
|
||||||
|
forecolor 1 1 1 1
|
||||||
|
visible 1
|
||||||
|
}
|
||||||
|
|
||||||
itemDef {
|
itemDef {
|
||||||
name options
|
name options
|
||||||
group grpOptions
|
group grpOptions
|
||||||
|
@ -297,7 +312,7 @@ itemDef {
|
||||||
type ITEM_TYPE_MULTI
|
type ITEM_TYPE_MULTI
|
||||||
cvar "vr_goreLevel"
|
cvar "vr_goreLevel"
|
||||||
cvarFloatList { "None" 0 "Blood Only" 1 "Blood & Gibs (Default)" 2 "Extra Gore (Performance Hit)" 3 }
|
cvarFloatList { "None" 0 "Blood Only" 1 "Blood & Gibs (Default)" 2 "Extra Gore (Performance Hit)" 3 }
|
||||||
rect 99 375 256 20
|
rect 99 385 256 20
|
||||||
textalign ITEM_ALIGN_RIGHT
|
textalign ITEM_ALIGN_RIGHT
|
||||||
textalignx 70
|
textalignx 70
|
||||||
textaligny 20
|
textaligny 20
|
||||||
|
|
Loading…
Reference in a new issue