Skip to content

Commit

Permalink
vk: [BROKEN] postpone BLAS building until frame painting
Browse files Browse the repository at this point in the history
Do not build BLASes on model creation. Collect all BLASes to be built,
and then build them just before the TLAS is built.

Known issues:
- crashes (timeout + device lost) RADV AMD on dynamic model update.
  • Loading branch information
w23 committed May 14, 2024
1 parent 4f76ba6 commit c2a71a3
Show file tree
Hide file tree
Showing 4 changed files with 229 additions and 178 deletions.
1 change: 1 addition & 0 deletions ref/vk/vk_brush.c
Original file line number Diff line number Diff line change
Expand Up @@ -686,6 +686,7 @@ static void brushDrawWater(r_brush_water_model_t *wmodel, const cl_entity_t *ent

if (!R_RenderModelUpdate(&wmodel->render_model)) {
ERR("Failed to update brush model \"%s\" water", wmodel->render_model.debug_name);
return;
}

const material_mode_e material_mode = brushMaterialModeForRenderType(render_type);
Expand Down
Loading

0 comments on commit c2a71a3

Please sign in to comment.