Skip to content

Commit 404d528

Browse files
committed
Made loading stages configurable
1 parent fd56bca commit 404d528

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

src/Layers/xrRender/dxApplicationRender.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,6 @@ void dxApplicationRender::load_draw_internal(CApplication& owner)
206206
float fTargetWidth = 600.0f * k.x * (b_ws ? 0.8f : 1.0f);
207207
draw_multiline_text(owner.pFontSystem, fTargetWidth, owner.ls_tip);
208208

209-
owner.pFontSystem->OnRender();
210-
211209
// draw level-specific screenshot
212210
if (hLevelLogo)
213211
{
@@ -233,10 +231,11 @@ void dxApplicationRender::load_draw_internal(CApplication& owner)
233231
logo_tex_coords.rb.set(1.0f, 0.77926f);
234232

235233
draw_face(hLevelLogo, r, logo_tex_coords, Fvector2().set(1, 1));
236-
owner.pFontSystem->SetColor(color_rgba(180, 180, 180, 200));
234+
if (ps_rs_loading_stages)
235+
owner.pFontSystem->SetColor(color_rgba(180, 180, 180, 200));
237236
}
238-
239-
owner.pFontSystem->OutI(0.f, 0.385f, owner.ls_title); // XXX: 0.385f <- hardcoded coordinates
237+
if (ps_rs_loading_stages)
238+
owner.pFontSystem->OutI(0.f, 0.385f, owner.ls_title); // XXX: 0.385f <- hardcoded coordinates
240239
owner.pFontSystem->OnRender();
241240
}
242241

src/Layers/xrRender/xrRender_console.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ u32 ps_r3_minmax_sm = 3; // = 0;
4040
const xr_token qminmax_sm_token[] = {{"off", 0}, {"on", 1}, {"auto", 2}, {"autodetect", 3}, {nullptr, 0}};
4141

4242
int ps_r2_fxaa = 0;
43+
int ps_rs_loading_stages = 0;
4344

4445
// “Off”
4546
// “DX10.0 style [Standard]”
@@ -652,6 +653,7 @@ void xrRender_initconsole()
652653
{
653654
CMD3(CCC_Preset, "_preset", &ps_Preset, qpreset_token);
654655

656+
CMD4(CCC_Integer, "rs_loadingstages", &ps_rs_loading_stages, 0, 1);
655657
CMD4(CCC_Integer, "rs_skeleton_update", &psSkeletonUpdate, 2, 128);
656658
#ifdef DEBUG
657659
CMD1(CCC_DumpResources, "dump_resources");

src/Layers/xrRender/xrRender_console.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ extern ECORE_API u32 ps_r3_minmax_sm; // = 0;
2525
extern ECORE_API const xr_token qminmax_sm_token[];
2626

2727
extern ECORE_API int ps_r2_fxaa;
28+
extern ECORE_API int ps_rs_loading_stages;
2829

2930
extern ENGINE_API int ps_r__Supersample;
3031
extern ECORE_API int ps_r__LightSleepFrames;

0 commit comments

Comments
 (0)