Optimize further

This commit is contained in:
Henrik Rydgård 2023-10-02 16:53:54 +02:00
parent 0260aebc26
commit 4d95250052
3 changed files with 16 additions and 12 deletions

View file

@ -683,12 +683,6 @@ bool DrawEngineCommon::ExtendNonIndexedPrim(GEPrimitiveType prim, int vertexCoun
return false;
}
bool applySkin = (vertTypeID & GE_VTYPE_WEIGHT_MASK) && decOptions_.applySkinInDecode;
if (applySkin) {
// TODO: Support this somehow.
return false;
}
_dbg_assert_(numDrawInds_ < MAX_DEFERRED_DRAW_INDS);
_dbg_assert_(numDrawVerts_ > 0);
*bytesRead = vertexCount * dec_->VertexSize();
@ -707,6 +701,7 @@ bool DrawEngineCommon::ExtendNonIndexedPrim(GEPrimitiveType prim, int vertexCoun
dv.vertexCount += vertexCount;
dv.indexUpperBound = dv.vertexCount - 1;
vertexCountInDrawCalls_ += vertexCount;
return true;
}
@ -787,10 +782,6 @@ void DrawEngineCommon::SubmitPrim(const void *verts, const void *inds, GEPrimiti
gstate_c.Dirty(DIRTY_TEXTURE_PARAMS);
DispatchFlush();
}
if (applySkin) {
DecodeVerts(decoded_);
}
}
void DrawEngineCommon::DecodeVerts(u8 *dest) {