Skip to content

Commit

Permalink
Extend details cache max size to prevent its overflow
Browse files Browse the repository at this point in the history
Overflow happens when you set detail_radius and detail_density to
maximum values
  • Loading branch information
Xottab-DUTY committed Jan 19, 2018
1 parent b337b1a commit ccd28c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Layers/xrRender/DetailManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ const float dm_slot_size = DETAIL_SLOT_SIZE;

//AVO: detail radius
#ifdef DETAIL_RADIUS
const u32 dm_max_cache_size = 62001; // assuming max dm_size = 124
//const u32 dm_max_cache_size = 62001; // assuming max dm_size = 124
constexpr auto dm_max_cache_size = 62001 * 2; // assuming max dm_size = 248
extern u32 dm_size;
extern u32 dm_cache1_line;
extern u32 dm_cache_line;
Expand Down

0 comments on commit ccd28c8

Please sign in to comment.