Commit Graph

5427 Commits

Author SHA1 Message Date
Kevin Ring 36783ad030 SharedAsset improvements...
* Make SharedAsset constructor and destructor protected, so instances of
  this type can't be created directly.
* Maintain `_sizeInDepot` field on `SharedAsset` to defend against the
  asset size changing between when we add its size and when we remove
  its size.
* Add some doc comments.
* Change the staleAssetSizeLimit to 16 MiB.
* Add some defensive assertions.
* Fix use-after-free when removing deletion candidates.
2024-10-10 20:18:58 +11:00
Kevin Ring 6459729559 Raster overlays store heap-allocated ImageCesiums. 2024-10-10 20:18:27 +11:00
Kevin Ring c8d961214c Remove unnecessary SharedAssetSystem::deletionTick. 2024-10-10 20:16:31 +11:00
Kevin Ring 8595163c92 getSizeBytes can use sizeInBytes or pixelData.size(). 2024-10-10 20:15:25 +11:00
Kevin Ring 1b0934ec6c Don't use an iterator after it's erased. 2024-10-09 22:48:16 +11:00
Kevin Ring ee4b391d14 Remove TODO. 2024-10-09 22:39:58 +11:00
Kevin Ring 21ecab90b8 Fix asset lifetime, avoid circular reference counting. 2024-10-09 22:18:11 +11:00
Ashley Rogers 924b000e00 Add accessors for deletion stats 2024-10-08 15:27:52 -04:00
Ashley Rogers aa81cbd679
Merge pull request #960 from CesiumGS/shared-assets-image-cesium-only
Make SharedAsset a base class, eliminate AssetContainer
2024-10-04 13:28:19 -04:00
Ashley Rogers 95749246de Format 2024-10-04 11:45:25 -04:00
Ashley Rogers d6c77858c2 Merge branch 'shared-assets-image-cesium-only' of github.com:CesiumGS/cesium-native into HEAD 2024-10-04 11:43:02 -04:00
Ashley Rogers e3e566502b Rework deletion 2024-10-04 11:42:47 -04:00
Ashley Rogers 80502adf15
Merge pull request #959 from CesiumGS/shared-assets-kring
Tweaks to asset sharing to support Unreal implementation
2024-10-04 10:39:08 -04:00
Kevin Ring a88d83f8d1 Move constructor for SharedAsset. 2024-10-04 23:17:48 +10:00
Kevin Ring 275bac0325 Better naming. 2024-10-04 21:16:11 +10:00
Kevin Ring ab21441ce4 Fix water mask bug, add assets to depot. 2024-10-04 18:50:27 +10:00
Kevin Ring cee6f21ea6 Make SharedAsset a base class an eliminate AssetContainer. 2024-10-04 16:10:28 +10:00
Kevin Ring e781a9c4bc AttributeSemantics -> VertexAttributeSemantics 2024-10-04 08:04:54 +10:00
Kevin Ring 82fb7e8fb3 Merge remote-tracking branch 'origin/shared-assets' into shared-assets-kring 2024-10-03 09:36:43 +10:00
Kevin Ring 91f5b5fc65 Merge remote-tracking branch 'origin/main' into shared-assets 2024-10-03 09:14:00 +10:00
Ashley Rogers a2b31a070b Fix missing ellipsoid parameters 2024-10-01 11:27:13 -04:00
Sean Lilley 91125ce4e0 Merge branch 'main' into get-up-axis-transform 2024-10-01 10:48:20 -04:00
Sean Lilley 15f03c5f33 Merge branch 'main' into gzip 2024-10-01 10:46:56 -04:00
Kevin Ring f8b38abbba Bump to v0.40.1. 2024-10-01 16:41:05 +10:00
Kevin Ring d8c2c2468e
Merge pull request #955 from CesiumGS/latent-children-fix
setMightHaveLatentChildren(false) even if a tile has real children.
2024-10-01 16:40:19 +10:00
Kevin Ring ec2186cff2 setMightHaveLatentChildren(false) even if tile has real children. 2024-10-01 16:18:33 +10:00
Kevin Ring 21844ffcab Bump to v0.40.0. 2024-10-01 09:10:39 +10:00
Kevin Ring 3a1c48f36d
Merge pull request #946 from CesiumGS/ezvcpkg-overlay-vars
Allow vcpkg overlays to be specified as CMake variables
2024-10-01 09:07:06 +10:00
Kevin Ring c29f56b328
Merge pull request #899 from CesiumGS/all-with-void-futures
Support `AsyncSystem::all` on void Futures.
2024-10-01 09:06:17 +10:00
Kevin Ring 466e8ad98c
Merge pull request #954 from CesiumGS/consistent-errors
When tileset fails to load, report all heights not sampled
2024-10-01 09:04:49 +10:00
Kevin Ring d6334664ba Merge remote-tracking branch 'origin/main' into consistent-errors 2024-10-01 07:55:02 +10:00
Kevin Ring 6fb28fe9a0 When tileset fails to load, report all heights not sampled.
Instead of rejecting the promise.
2024-10-01 07:54:21 +10:00
Ashley Rogers 7bfc06adaf Merge branch 'main' of github.com:CesiumGS/cesium-native into ezvcpkg-overlay-vars 2024-09-30 16:54:17 -04:00
Ashley Rogers b61dc5cdca Merge branch 'main' of github.com:CesiumGS/cesium-native into all-with-void-futures 2024-09-30 16:13:04 -04:00
Janine Liu 31e93ac299
Merge pull request #952 from CesiumGS/mutable-catch-lambda
Support for mutable lambdas in `catch` functions.
2024-09-30 10:28:40 -04:00
Kevin Ring be51458722 Merge remote-tracking branch 'origin/shared-assets' into shared-assets-kring 2024-09-30 21:10:57 +10:00
Kevin Ring d7bef249f1 Merge remote-tracking branch 'origin/main' into shared-assets 2024-09-30 21:04:40 +10:00
Kevin Ring 05e1af1e80 Show tileset if overlay tile provider can't be created. 2024-09-30 21:03:00 +10:00
Kevin Ring 407be444f5 Fix clang error. 2024-09-30 21:03:00 +10:00
Kevin Ring e83222c5da Update CHANGES.md. 2024-09-30 21:03:00 +10:00
Kevin Ring f60168034a errors -> errorList. 2024-09-30 21:03:00 +10:00
Kevin Ring 03b60efa8c Don't let failing overlays stop rendering completely. 2024-09-30 21:03:00 +10:00
Kevin Ring 8ec646c6dd Propagate raster overlay load errors to the user. 2024-09-30 21:03:00 +10:00
Kevin Ring 95840fe38d Fix compile errors in tests. 2024-09-30 21:03:00 +10:00
Kevin Ring 9fe3b4e742 WIP error reporting for raster overlays. 2024-09-30 21:03:00 +10:00
Kevin Ring 86995ffd49 Allow constructor parameters to pass to ExtensibleObject::addExtension. 2024-09-30 14:44:49 +10:00
Kevin Ring 6de6b38603 Merge remote-tracking branch 'origin/main' into shared-assets-kring 2024-09-29 12:00:38 +10:00
Kevin Ring c7268ccb9b Fix error on clang. 2024-09-28 11:21:30 +10:00
Kevin Ring 87ee2e36aa Support for mutable lambdas in `catch` functions. 2024-09-28 10:55:32 +10:00
Janine Liu f646271fa4
Merge pull request #783 from CesiumGS/height-query
Add height-query function to Tileset
2024-09-27 11:33:21 -04:00