Skip to content

Commit ccd28c8

Browse files
committed
Extend details cache max size to prevent its overflow
Overflow happens when you set detail_radius and detail_density to maximum values
1 parent b337b1a commit ccd28c8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Layers/xrRender/DetailManager.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ const float dm_slot_size = DETAIL_SLOT_SIZE;
3636

3737
//AVO: detail radius
3838
#ifdef DETAIL_RADIUS
39-
const u32 dm_max_cache_size = 62001; // assuming max dm_size = 124
39+
//const u32 dm_max_cache_size = 62001; // assuming max dm_size = 124
40+
constexpr auto dm_max_cache_size = 62001 * 2; // assuming max dm_size = 248
4041
extern u32 dm_size;
4142
extern u32 dm_cache1_line;
4243
extern u32 dm_cache_line;

0 commit comments

Comments
 (0)