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

Fix debug overlay rendering for large meshes #235

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

AlpyneDreams
Copy link
Contributor

When Jolt tries to draw a debug mesh with over 32k verts, Source engine can't handle it due to 16-bit indices and other constraints. This PR just splits large meshes up into chunks small enough for Source to handle. It also properly frees the meshes when the Batch is freed.

I didn't do chunking for indexed meshes since it seems like Jolt is only using them for the primitives currently and chunking those is a lot more complicated.

Fix compile

Fix compile on ASW

Actually fix compile on ASW

Your moma
@misyltoad misyltoad merged commit 5cdbeb5 into misyltoad:main Dec 12, 2024
7 checks passed
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.

2 participants