Skip to content

Material and u_Lights buffer clean-up#1671

Merged
VReaperV merged 6 commits intoDaemonEngine:masterfrom
VReaperV:material-buffer-cleanup
May 30, 2025
Merged

Material and u_Lights buffer clean-up#1671
VReaperV merged 6 commits intoDaemonEngine:masterfrom
VReaperV:material-buffer-cleanup

Conversation

@VReaperV
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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.

2 participants