Skip to content

Implement proper GPU dispatch of meshes#261

Merged
waynemwashuma merged 6 commits into
wimaengine:devfrom
waynemwashuma:queue-meshes
Sep 17, 2025
Merged

Implement proper GPU dispatch of meshes#261
waynemwashuma merged 6 commits into
wimaengine:devfrom
waynemwashuma:queue-meshes

Conversation

@waynemwashuma
Copy link
Copy Markdown
Collaborator

@waynemwashuma waynemwashuma commented Sep 17, 2025

Objective

Changes the WebGL rendering system to use an event-driven architecture instead of component hooks for mesh GPU resource management.

Solution

The previous implementation used component hooks (meshAddHook2) which created tight coupling and immediate processing during component addition. This PR introduces a more robust event-driven system that:

  • Adds a proper cleanup of GPU resources when meshes are dropped.
  • Decouples mesh dispatching to gpu from immediate component addition on an entity.

Migration Guide

No external breaking changes.

Checklist

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • I have verified backward compatibility where possible.
  • I have manually tested code works as intended.

@waynemwashuma waynemwashuma marked this pull request as ready for review September 17, 2025 03:50
@waynemwashuma waynemwashuma changed the title Queue meshes Implement proper GPU dispatch of meshes Sep 17, 2025
@waynemwashuma waynemwashuma merged commit 4c60328 into wimaengine:dev Sep 17, 2025
5 checks passed
@waynemwashuma waynemwashuma deleted the queue-meshes branch September 17, 2025 04:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant