Skip to content

Commit e0d6e21

Browse files
committed
give Lamure a minimum of 1 Gig to work with
1 parent 3ca4526 commit e0d6e21

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/OpenCOVER/plugins/hlrs/LamurePointCloud/rendering/src/gpu_context.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ void gpu_context::test_video_memory(scm::gl::render_device_ptr device)
108108
size_t render_budget_in_mb = policy->render_budget_in_mb();
109109

110110
size_t video_ram_free_in_mb = (gpu_access::query_video_memory_in_mb(device) * 3u) / 4u;
111+
if(video_ram_free_in_mb < 1000)
112+
video_ram_free_in_mb = 1000;
111113

112114
if (policy->out_of_core_budget_in_mb() == 0 || video_ram_free_in_mb < render_budget_in_mb)
113115
{
@@ -152,6 +154,8 @@ void gpu_context::test_video_memory(scm::gl::render_device_ptr device, Data_Prov
152154
size_t render_budget_in_mb = policy->render_budget_in_mb();
153155

154156
size_t video_ram_free_in_mb = (gpu_access::query_video_memory_in_mb(device) * 3u) / 4u;
157+
if(video_ram_free_in_mb < 1000)
158+
video_ram_free_in_mb = 1000;
155159

156160
if (policy->out_of_core_budget_in_mb() == 0 || video_ram_free_in_mb < render_budget_in_mb)
157161
{

0 commit comments

Comments
 (0)