Prefetch buffers in rlVertex3f

This commit is contained in:
Cherry 2026-01-12 18:11:23 +03:00
parent c1ab645ca2
commit c259e30b4f
2 changed files with 3 additions and 0 deletions

0
currentBuffer Normal file
View File

View File

@ -1491,6 +1491,9 @@ void rlEnd(void)
// NOTE: Vertex position data is the basic information required for drawing
void rlVertex3f(float x, float y, float z)
{
_mm_prefetch(RLGL.currentBatch->vertexBuffer + RLGL.currentBatch->currentBuffer, 1);
_mm_prefetch(RLGL.currentBatch->draws + RLGL.currentBatch->drawCounter - 1, 0);
float tx = x;
float ty = y;
float tz = z;