Skip to content

Conversation

@jfboeve
Copy link
Collaborator

@jfboeve jfboeve commented Jun 6, 2024

We are using the same calculations for the renderCoords we use in the .addQuad function in the WebGLCoreRenderer, with this fix we can use the already calculated renderCoords without having to do the calculations again every time a draw call is made.

@jfboeve jfboeve requested review from erikhaandrikman, frank-weindel and wouterlucas and removed request for erikhaandrikman June 6, 2024 12:28
uiQuadBuffer[bufferIdx++] = colorBr;
fQuadBuffer[bufferIdx++] = textureIdx;
// render quad advanced
if (tb !== 0 || tc !== 0) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you move this conditional block up a level to be an else if + else? Just to reduce indentation where it isn't really needed

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed

Copy link
Contributor

@wouterlucas wouterlucas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@erikhaandrikman erikhaandrikman merged commit 4536b46 into dev Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants