Skip to content

Commit

Permalink
Update nier.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Kaldaien authored Jun 22, 2017
1 parent 7d9f1db commit 24231ed
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions nier.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
#include <atlbase.h>


#define FAR_VERSION_NUM L"0.6.1.2"
#define FAR_VERSION_NUM L"0.6.2.0"
#define FAR_VERSION_STR L"FAR v " FAR_VERSION_NUM

// Block until update finishes, otherwise the update dialog
Expand Down Expand Up @@ -337,7 +337,6 @@ SK_FAR_CreateBuffer (
//
if (pInitialData != nullptr && pInitialData->pSysMem != nullptr)
{
// Throw away the const-qualifier; it's safe.
far_light_volume_s* lights =
(far_light_volume_s *)pInitialData->pSysMem;

Expand Down Expand Up @@ -387,6 +386,8 @@ SK_FAR_CreateBuffer (

return D3D11Dev_CreateBuffer_Original (This, &new_desc, &new_data, ppBuffer);
}

return D3D11Dev_CreateBuffer_Original (This, &new_desc, pInitialData, ppBuffer);
}

return D3D11Dev_CreateBuffer_Original (This, pDesc, pInitialData, ppBuffer);
Expand Down Expand Up @@ -1826,16 +1827,16 @@ typedef void (WINAPI *D3D11_DrawInstancedIndirect_pfn)(
L"FAR.Compatibility",
L"NoD3D11Interop" );

extern bool SK_DXGI_SlowStateCache;
extern bool SK_DXGI_FullStateCache;

if (! far_slow_state_cache->load ())
SK_DXGI_SlowStateCache = true;
SK_DXGI_FullStateCache = false;
else
SK_DXGI_SlowStateCache = far_slow_state_cache->get_value ();
SK_DXGI_FullStateCache = far_slow_state_cache->get_value ();

config.render.dxgi.slow_state_cache = SK_DXGI_SlowStateCache;
config.render.dxgi.full_state_cache = SK_DXGI_FullStateCache;

far_slow_state_cache->set_value (SK_DXGI_SlowStateCache);
far_slow_state_cache->set_value (SK_DXGI_FullStateCache);
far_slow_state_cache->store ();


Expand Down Expand Up @@ -2296,6 +2297,16 @@ SK_FAR_ControlPanel (void)
far_gi_min_light_extent->store ();
}

if (ImGui::IsItemHovered ( ))
{
ImGui::BeginTooltip ();
ImGui::Text ("Fine-tune Light Culling");
ImGui::Separator ();
ImGui::BulletText ("Higher values are faster, but will produce visible artifacts.");
ImGui::BulletText ("Use Park Ruins: Attraction Sq. as a reference when adjusting this.");
ImGui::EndTooltip ();
}

ImGui::TreePop ();
}

Expand Down

0 comments on commit 24231ed

Please sign in to comment.