Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WEB-695 Batching Maintenance #2182

Merged
merged 30 commits into from
Apr 2, 2024
Merged

Conversation

AlexandruPopovici
Copy link
Contributor

@AlexandruPopovici AlexandruPopovici commented Mar 29, 2024

Description & motivation

Much needed maintenance to our batching system which has been gathering clutter for a while.

  • Most importantly, replaced draw range integration implementation with something more robust. Additional details here
  • Removed a lot of code duplication by adding an abstract PrimitiveBatch implementation which is being extended by our MeshBatch and PointBatch
  • Added testing to the viewer library. Currently only just a few tests, but we will add more in time

Changes:

To-do before merge:

Screenshots:

Validation of changes:

Checklist:

  • My pull request follows the guidelines in the Contributing guide?
  • My pull request does not duplicate any other open Pull Requests for the same update/change?
  • My commits are related to the pull request and do not amend unrelated code or documentation.
  • My code follows a similar style to existing code.
  • I have added appropriate tests.
  • I have updated or added relevant documentation.

References

AlexandruPopovici and others added 22 commits March 22, 2024 11:30
… a graph. Also some profiling to max out pergf
…to directly look them up rather than searching for them in an array
…roach. Fixed some cicular dependencie which were messing up vitest runtime.
…of the old ugly way of flattening the ranges. Update MeshBatch, PointBatch and InstancedMeshBatch
… primitive based rendering (triangles, lines, points) as abstract. Our Mesh and Point batch will use most of the common implementation. Updated MeshBatch to extend PrimitiveBatch
…here was no point, they too different to make sense. Got rid of the pointless circular dependency between the instaned batch and mesh
Copy link

linear bot commented Mar 29, 2024

@fabis94 fabis94 marked this pull request as ready for review April 1, 2024 11:28
fabis94
fabis94 previously approved these changes Apr 1, 2024
.circleci/config.yml Outdated Show resolved Hide resolved
.circleci/config.yml Outdated Show resolved Hide resolved
@AlexandruPopovici AlexandruPopovici merged commit 9c481a2 into main Apr 2, 2024
33 of 36 checks passed
@AlexandruPopovici AlexandruPopovici deleted the alex/smarter-draw-ranges branch April 2, 2024 12:48
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.

3 participants