Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Persistent mapping for uniform buffers#310

Merged
Overv merged 7 commits intoOverv:masterfrom
SaschaWillems:memory_mapping
Nov 3, 2022
Merged

Persistent mapping for uniform buffers#310
Overv merged 7 commits intoOverv:masterfrom
SaschaWillems:memory_mapping

Conversation

@SaschaWillems
Copy link
Copy Markdown
Contributor

This PR changes how the tutorial maps uniform buffers for updating. Instead of mapping and unmapping each frame, they are now mapped once after creation ("persistent mapping").

The PR updates both the tutorial chapter (that talks about ubos) and all code snippets that make use of ubos.

@Overv
Copy link
Copy Markdown
Owner

Overv commented Nov 3, 2022

Sorry for not reviewing earlier, I was on a holiday.

Overv pushed a commit that referenced this pull request Mar 8, 2023
* Updated UBO chapter and removed in-place map and unmap of the ubo

Replaced it with map-once aka "persistent mapping"

* Fixed index for uniform buffer selection

* Update code samples to persistent ubo mapping

* Resize vector for mapped uniform buffer pointers

* Use calculated buffer size for mapping

* Update code samples to persistent ubo mapping

* Spelling
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