-
Notifications
You must be signed in to change notification settings - Fork 792
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
[APV] Cell streaming system #5731
Merged
Merged
Changes from 1 commit
Commits
Show all changes
108 commits
Select commit
Hold shift + click to select a range
75c954a
Updated MeshGizmo to handle both traingles and lines.
JulienIgnace-Unity 570493f
Fixed cell and brick debug scale
JulienIgnace-Unity 1bfc541
Merge branch 'master' of https://github.com/Unity-Technologies/Graphi…
JulienIgnace-Unity 53f4f3f
With a null ref exception when applying virtual offset on unloaded sc…
JulienIgnace-Unity 70a3d3d
Fixed an issue causing failure of the bake when multiple scenes are l…
JulienIgnace-Unity d381f78
Faster new version of debug probes with compute buffers instead of co…
JulienIgnace-Unity 00a460e
Fixed debug probes after domain relaod when using L1
JulienIgnace-Unity e128c24
Fixed compute buffer probe debug
JulienIgnace-Unity 51eac63
Matched cell debug culling with cell culling used for probe debug.
JulienIgnace-Unity c3160d6
Revert "Matched cell debug culling with cell culling used for probe d…
JulienIgnace-Unity 31180f1
Fixed per probe culling.
JulienIgnace-Unity 0a7730f
Merge branch 'master' of https://github.com/Unity-Technologies/Graphi…
JulienIgnace-Unity 78596c7
Revert "Fixed compute buffer probe debug"
JulienIgnace-Unity 72a75b4
Revert "Faster new version of debug probes with compute buffers inste…
JulienIgnace-Unity 1cbd0b5
Merge branch 'master' of https://github.com/Unity-Technologies/Graphi…
JulienIgnace-Unity b44cde7
Merge branch 'master' of https://github.com/Unity-Technologies/Graphi…
JulienIgnace-Unity f762552
Merge branch 'hd/apv-msic-fixes' of https://github.com/Unity-Technolo…
JulienIgnace-Unity 4c7f031
Cleaning in preparation for streaming
JulienIgnace-Unity f0d5e5c
More cleanup + Fix debug upon load/unload of cells
JulienIgnace-Unity 4fdb748
Fix GCAlloc
JulienIgnace-Unity efa24b7
Merge branch 'master' of https://github.com/Unity-Technologies/Graphi…
JulienIgnace-Unity e89c332
Add missing update function
JulienIgnace-Unity 8a8b47d
Proper error handling on apv texture allocation failure
JulienIgnace-Unity c580086
Handle APV index allocation failure
JulienIgnace-Unity 7a7e08e
Small cleanup
JulienIgnace-Unity a584b9b
Create hidden per scene data
FrancescoC-unity 87fed75
Start using new mode in baking workflow (Need to fix the tmp send data)
FrancescoC-unity 922f827
Remove loading/removal from authoring
FrancescoC-unity 49da9e8
Need to switch branch, move profile data to asset
FrancescoC-unity 7e86ae5
Almost completely get rid of baking reference volume
FrancescoC-unity a92bf42
remove baking ref from realtime subdiv (but not working :p)
FrancescoC-unity 5221d9b
Precomputed chunk budget for indices and sh pool
JulienIgnace-Unity fb26eaf
Revert "remove baking ref from realtime subdiv (but not working :p)"
FrancescoC-unity 17fd32e
Remove all probe ref volume authroing from baking, yay!
FrancescoC-unity 809f560
Moving draw gizmo away and remove all reference of authoring from baking
FrancescoC-unity 332ec81
Make sure baking profile is available if required during non baking
FrancescoC-unity e628d77
Load profile info from the asset
FrancescoC-unity 802547a
Fix dilation refresh
FrancescoC-unity a59557d
Moved probe pool chunk size constant to ProbeBrickPool
JulienIgnace-Unity afaf065
Moved internal array to its own class
JulienIgnace-Unity 24fee3a
Removed empty update for now
JulienIgnace-Unity 26328aa
Merge branch 'master' of https://github.com/Unity-Technologies/Graphi…
JulienIgnace-Unity ab018ad
Post merge fix
JulienIgnace-Unity 4559ebc
remove some other things
FrancescoC-unity 22d13cf
remove asset
FrancescoC-unity 8f88873
Small rename
FrancescoC-unity b7c8fc4
Merge branch 'HDRP/new-apv-workflow-backend' of https://github.com/Un…
JulienIgnace-Unity eb52367
Move field inside EDITOR tags
FrancescoC-unity 520c27c
Post merge fix
JulienIgnace-Unity 1c765d8
Fix issue when no profile is ever loaded (i.e. first time a project i…
FrancescoC-unity 793a308
guards
FrancescoC-unity a65116c
Merge branch 'HDRP/new-apv-workflow-backend' of https://github.com/Un…
JulienIgnace-Unity 5552a6f
Merge branch 'master' of https://github.com/Unity-Technologies/Graphi…
JulienIgnace-Unity e6c7d64
Merge branch 'master' of https://github.com/Unity-Technologies/Graphi…
JulienIgnace-Unity 6375a26
Streaming V1 (non functional)
JulienIgnace-Unity 1f8526b
Fixed adding the same cells multiple times to the system.
JulienIgnace-Unity 59df65c
Fixed cell sorting
JulienIgnace-Unity 2268168
Fixed wrong unload of unloaded cells.
JulienIgnace-Unity e2f8bd1
Fixed a mistake in chunk estimation calculation.
JulienIgnace-Unity 50295ab
Moved cell streaing stuff to its own file
JulienIgnace-Unity 467874d
Merge branch 'master' of https://github.com/Unity-Technologies/Graphi…
JulienIgnace-Unity 7a04814
Merge branch 'hd/apv-cell-streaming' of https://github.com/Unity-Tech…
JulienIgnace-Unity 02e4621
Fixed cell camera distance computation
JulienIgnace-Unity cdacf4f
GCAlloc hunt 1
JulienIgnace-Unity 771022c
Pool a lot of internal objects to avoid gcallocs
JulienIgnace-Unity 74fd909
Preallocated temporary Color arrays for updating SH textures
JulienIgnace-Unity 933c678
Added various API and tests to DynamicArray
JulienIgnace-Unity 534d049
Quicksort WIP
JulienIgnace-Unity 4b4fcc2
Implemented quicksort
JulienIgnace-Unity e65b6e6
Reverted wrong change
JulienIgnace-Unity 8fa4822
Moved QuickSort to a class extension and completed doc
JulienIgnace-Unity c4dfa09
Small improvement to AddRange
JulienIgnace-Unity be6493f
Merge branch 'master' of https://github.com/Unity-Technologies/Graphi…
JulienIgnace-Unity 5dd31b7
Post merge fix
JulienIgnace-Unity d77069c
Update Changelog
JulienIgnace-Unity 9aa5b44
Merge branch 'hd/apv-cell-streaming' of https://github.com/Unity-Tech…
JulienIgnace-Unity 5d2f8df
Merge branch 'hd/dynamic-array-improvements' of https://github.com/Un…
JulienIgnace-Unity 9d56479
Moved internal array to DynamicArray
JulienIgnace-Unity d162005
Pooled CellInfo to avoid allocation
JulienIgnace-Unity 3cc6639
Split Update of SH texture in several chunks to avoid allocations.
JulienIgnace-Unity 8022bbf
Fixed chunk copy
JulienIgnace-Unity 8f275a6
Fixed Temporary DataLoc lifetime.
JulienIgnace-Unity c2b8ba4
Merge branch 'master' of https://github.com/Unity-Technologies/Graphi…
JulienIgnace-Unity 08d6d59
Relax some condition on RemoveRange in DynamicArray
JulienIgnace-Unity ba00940
Revert MeshGizmo modifications
JulienIgnace-Unity be16a6a
Restored changed/hidden gizmo when Cells aren't loaded.
JulienIgnace-Unity 287d3fd
Reverted a bit of temp test code.
JulienIgnace-Unity 5e1e4b3
Small Clean
JulienIgnace-Unity b0197d4
Added a way to disable streaming of cells.
JulienIgnace-Unity 087a401
Fixed hideFlags for pool textures
JulienIgnace-Unity c81c29d
partial index buffer update to improve performance.
JulienIgnace-Unity 736bfcb
Fixed an issue where cells would stay in internal structures even aft…
JulienIgnace-Unity 7b832eb
Added names to texture allocated for APV
JulienIgnace-Unity c9f95a3
Removed useless comment
JulienIgnace-Unity baa9da3
Merge branch 'master' of https://github.com/Unity-Technologies/Graphi…
JulienIgnace-Unity adcaa62
Fixed wrong bound for loop
JulienIgnace-Unity 393bc55
Addressed most PR review feedback
JulienIgnace-Unity 6c51d0a
Filled incoming chunks left over space with black.
JulienIgnace-Unity d30a196
Merge branch 'master' of https://github.com/Unity-Technologies/Graphi…
JulienIgnace-Unity 9cfac88
Handled the case where not every cell fit in memory when performing d…
JulienIgnace-Unity 0119f3d
Merge branch 'master' of https://github.com/Unity-Technologies/Graphi…
JulienIgnace-Unity a532ab5
Merge branch 'master' of https://github.com/Unity-Technologies/Graphi…
JulienIgnace-Unity c93e747
Reworked baking to avoid using runtime structure to fill baked assets
JulienIgnace-Unity 8b96607
Moved reference counting into CellInfo
JulienIgnace-Unity 0b2abad
Moved the APV cell streaming options to the HDRP asset.
JulienIgnace-Unity d70b848
Fixed cleanup of loaded data
JulienIgnace-Unity 18f7ae8
Merge branch 'master' of https://github.com/Unity-Technologies/Graphi…
JulienIgnace-Unity a307b05
Merge branch 'master' of https://github.com/Unity-Technologies/Graphi…
JulienIgnace-Unity File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
GCAlloc hunt 1
- Removed RegId (caused garbage when used as key in collections) - Removed List<Chunk> allocation when adding bricks - Removed some variable captures in lambdas
- Loading branch information
commit cdacf4fac0559c8b7fff1a054bd60bcf8b5d5b72
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yikes, can we use the cell index instead to do the checks?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can but I don't think that would make any difference, would it? It's just comparing references.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would we still need to have the global static thing? I guess?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, the static is mandatory because we use lambda for finding stuff. So it would capture the variable and generate gcalloc without it.
I guess we can make functors and set the ref in it to avoid this but it's much more verbose for not a lot of gain (I don't expect this to be run multi-threaded)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Alternatively, you can replace the FindIndex with an old school for loop, it will avoid GC allocs and the static global field.