CesiumGS / cesium-unreal

Bringing the 3D geospatial ecosystem to Unreal Engine
https://cesium.com/platform/cesium-for-unreal/
Apache License 2.0
931 stars 294 forks source link

load massive photogrammetry model stutter #701

Closed WxpGiser closed 2 years ago

WxpGiser commented 2 years ago

PC :i9-10900K RTX-3070 RAM 64G

when loading massive photogrammetry model a while,video memory has being feed to the full,sometimes releasing video memory with a little stutter,also has a crash as follow:

16385238253397
WxpGiser commented 2 years ago

I find a solution,it's work

16388482962564
kring commented 2 years ago

Are you using the latest version of Cesium for Unreal, v1.8.1? If the pauses are caused by UE's garbage collection, you should see much better behavior in the latest release.

WxpGiser commented 2 years ago

v1.8.1 get much better experience with less usage of video memory , you have done a great work.

when I set MaximumCachedBytes to 8GB, there is still have stutter ,maybe should use compressed texture when data is too large.

kring commented 2 years ago

Yep, we'll have KTX2 support before too long. See #691. It's possible that the remaining stutter at 8GB is caused by exceeding your available system memory and needing to swap to disk. Even though you said your system has 64GB, the way the 8GB is measured means it can actually require a lot more than that, especially if you're using multiple tilesets.

WxpGiser commented 2 years ago

Can the remaining stutter is because of the video memory is not enough? Releasing video memory with stutter commonly。

kring commented 2 years ago

It's possible. Setting MaximumCachedBytes to 8GB will hit both system and video memory very hard.

WxpGiser commented 2 years ago

It's happened. By the way, video memory is not just taken by this tileset.

kring commented 2 years ago

Closing this because I don't think there's any further action here.