Skip to content

Commit

Permalink
Disabled precompiled shaders usage.
Browse files Browse the repository at this point in the history
It isn't the shaders cache.
In the patch 1.6.0.2 GSC had put some pre-compiled shaders for r1, r3
and r4 in game resources and without this change game will not load
shaders from gamedata. Unfortunately, level load time increased.
  • Loading branch information
RainbowZerg committed Jun 27, 2018
1 parent 8cdddef commit 683e54c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Layers/xrRenderPC_R1/FStaticRender.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1032,7 +1032,7 @@ static inline bool match_shader(
static inline bool match_shader_id(
LPCSTR const debug_shader_id, LPCSTR const full_shader_id, FS_FileSet const& file_set, string_path& result)
{
#if 0
#if 1
strcpy_s ( result, "" );
return false;
#else // #if 1
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRenderPC_R2/r2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,7 @@ static inline bool match_shader(
static inline bool match_shader_id(
LPCSTR const debug_shader_id, LPCSTR const full_shader_id, FS_FileSet const& file_set, string_path& result)
{
#if 0
#if 1
strcpy_s ( result, "" );
return false;
#else // #if 1
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRenderPC_R3/r3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1549,7 +1549,7 @@ static inline bool match_shader(
static inline bool match_shader_id(
LPCSTR const debug_shader_id, LPCSTR const full_shader_id, FS_FileSet const& file_set, string_path& result)
{
#if 0
#if 1
strcpy_s ( result, "" );
return false;
#else // #if 1
Expand Down
2 changes: 1 addition & 1 deletion src/Layers/xrRenderPC_R4/r4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1613,7 +1613,7 @@ static inline bool match_shader(
static inline bool match_shader_id(
LPCSTR const debug_shader_id, LPCSTR const full_shader_id, FS_FileSet const& file_set, string_path& result)
{
#if 0
#if 1
strcpy_s ( result, "" );
return false;
#else // #if 1
Expand Down

0 comments on commit 683e54c

Please sign in to comment.