Skip to content

Replaced Zone Upload Estimate with staging buffers#1035

Open
RuffledPlume wants to merge 1 commit into117HD:masterfrom
RuffledPlume:StagingZoneUpload
Open

Replaced Zone Upload Estimate with staging buffers#1035
RuffledPlume wants to merge 1 commit into117HD:masterfrom
RuffledPlume:StagingZoneUpload

Conversation

@RuffledPlume
Copy link
Copy Markdown
Contributor

  • SceneUploader Estimate Functions Removed
  • Zone::HasWater calculated by checking if uploadZoneWater writes anything to the vertex buffer
  • ZoneUploadJob now obtains GPUIntBuffer from a pool and writes all the zone data before requesting GLBuffers to be created and mapped
  • StagingBuffers are written to the Mapped Buffers Async

 * SceneUploader Estimate Functions Removed
 * `Zone::HasWater` calculated by checking if `uploadZoneWater` writes anything to the vertex buffer
 * `ZoneUploadJob` now obtains `GPUIntBuffer` from a pool and writes all the zone data before requesting GLBuffers to be created and mapped
 * StagingBuffers are written to the Mapped Buffers Async

GLBuffer::initialize can now take a Buffer for initial content

Removed Zone Mapping in favor of simpler `glBufferData` upload since the cost equals out and is significantly less complex

Merge Rids, roofStart, roofEnd & levelOffsets into a single object: LevelData
Reducing the amount of arrays from 17 to just 2
Build RoofData into a staging array to reduce resulting array size since not all rids will write anything

Improve Garbage & Assertion Performance

Initialise Zone when `OnCompleted` is called, instead of in a callback

Cleanup

Reverted Assertions changes
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.

1 participant