Virtual Shadow Maps are not Caching

Hello, I am having an issue with the Virtual Shadow maps. They use to perform normally, as depicted in the docs, with the cached pages displayed as green and the invalidated in red. But now, they are always red, not matter what I do. Nothing is invalidated but they seem to be allocated and then cleared instantly.

Here is an example:

A simple sphere on a plane with a single point light, nothing else in the level. The light is movable and the objects stationnary.

Here is the cached page view, where you can see that nothing is cached and nothing is invalidated as well.

Both meshes are nanites and when I set the “Draw Only Geometry Causing VSM Invalidation” they are both invisible, so they are “Legit”.

Otherwise, the only time I can see it fully cached, is when I resize my viewport. You can see in the print data that everything is cached and that the pages are green. As soon as I release the mouse button, they turn back red as they are cleared…

I’m using version 5.0.1. Like I said, it used to work, but now it doesn’t for some reason. I deleted the .ini files to reset the project settings, but it didn’t fix it either.

Thanks for you time!

Alright, not sure what fixed it but here are the latest steps that I did before it started working again: I tried deleting the “saved” and the “Config” folder in the project and then restart. This can sometimes fix some weird issues, but it didn’t work. I then erased the whole project files, but it didn’t work either. I then deleted the engine and reinstalled it and it was still not caching the VSM. After that, someone told me to delete the Intermediate folder (that I already did when I deleted the whole project) but this time, after restarting, the Virtual Shadow maps are caching again! I mean…why didn’t it work the first time? What a wasted day. At least I can now continue my life. I hope this help someone in the future.

–EDIT
Back to square one this morning, all the VSM are getting cleared again. Deleting the folder is not working this time. I need to find a solution for this. :confused:

Maybe this could help shed some light? This is a new basic level with just a floor and the sky that comes with it. When I am close to the floor I get this:

When I move away:

I guess since there are less pages when far away, the ones that are not cleared are visible.