Skip to content

Commit

Permalink
Avoid culling indexed draws, to avoid the slow path.
Browse files Browse the repository at this point in the history
  • Loading branch information
hrydgard committed Oct 16, 2023
1 parent 86d9580 commit 04f0885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion GPU/GPUCommonHW.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -992,7 +992,7 @@ void GPUCommonHW::Execute_Prim(u32 op, u32 diff) {

#define MAX_CULL_CHECK_COUNT 6

#define PASSES_CULLING ((vertexType & (GE_VTYPE_THROUGH_MASK | GE_VTYPE_MORPHCOUNT_MASK | GE_VTYPE_WEIGHT_MASK)) || count > MAX_CULL_CHECK_COUNT)
#define PASSES_CULLING ((vertexType & (GE_VTYPE_THROUGH_MASK | GE_VTYPE_MORPHCOUNT_MASK | GE_VTYPE_WEIGHT_MASK | GE_VTYPE_IDX_MASK)) || count > MAX_CULL_CHECK_COUNT)

// If certain conditions are true, do frustum culling.
bool passCulling = PASSES_CULLING;
Expand Down

0 comments on commit 04f0885

Please sign in to comment.