Skip to content

Commit

Permalink
UPBGE: Disable temporarly source of unstabilty in master
Browse files Browse the repository at this point in the history
As there's vulkan integration on the way, as I might need to debug
avoiding "interferences", as I currently work with AMD CPU which can
cause issues even with an nvidia card, and as AMD CPU + AMD igpu combo
seems even more unstable with GPU_finish() or fences
  • Loading branch information
youle31 committed Jun 23, 2023
1 parent 24ea533 commit 962320d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions source/blender/draw/intern/draw_cache_impl_mesh.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1945,12 +1945,12 @@ void DRW_mesh_batch_cache_create_requested(TaskGraph *task_graph,
/* UPBGE: Even if it can create unstabilties in rare cases on some hardwares (never noticed with an intel CPU),
* it's worth (performances-wise) using GPU_finish() or a fence here instead of BLI_task_graph_work_and_wait(task_graph);
* Using a fence works even better on some hardwares. */
//BLI_task_graph_work_and_wait(task_graph);
BLI_task_graph_work_and_wait(task_graph);
//GPU_finish();
GPUFence *fence = GPU_fence_create();
GPU_fence_signal(fence);
GPU_fence_wait(fence);
GPU_fence_free(fence);
//GPUFence *fence = GPU_fence_create();
//GPU_fence_signal(fence);
//GPU_fence_wait(fence);
//GPU_fence_free(fence);

#ifdef DEBUG
drw_mesh_batch_cache_check_available(task_graph, me);
Expand Down

0 comments on commit 962320d

Please sign in to comment.