Skip to content

Material and u_Lights buffer clean-up #1671

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

Merged
merged 6 commits into from
May 30, 2025

Conversation

VReaperV
Copy link
Contributor

Re-arrange the buffer IDs so they make more sense when debugging, get rid of the requirement to not use bind 0 in BufferBind by using explicit binding for the u_Lights UBO, and also make that work in the core renderer.

Also removed the calls to bind/unbind buffers every frame (and even more often), reducing the amount of API calls.

@VReaperV VReaperV moved this to In Progress in Material system May 24, 2025
Copy link
Member

@slipher slipher left a comment

Choose a reason for hiding this comment

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

Worked in my tests. Just style nits

@VReaperV VReaperV force-pushed the material-buffer-cleanup branch from 83869cb to db523da Compare May 30, 2025 06:12
VReaperV added 6 commits May 30, 2025 09:15
Get rid of the requirement to not use binding point 0 for UBOs explicitly.
Less useless API calls, though for lightMapping shader on entities, which uses the core renderer at all times, this is till not the case.
@VReaperV VReaperV force-pushed the material-buffer-cleanup branch from db523da to 7588b47 Compare May 30, 2025 06:15
@slipher
Copy link
Member

slipher commented May 30, 2025

LGTM

@VReaperV VReaperV merged commit 03499db into DaemonEngine:master May 30, 2025
9 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in Material system May 30, 2025
@VReaperV VReaperV deleted the material-buffer-cleanup branch May 30, 2025 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants