Description
Describe the Bug
World village_center.wbt
needs some optimizations.
During the loading it goes through the processes:
- Parsing Nodes
- Downloading assets
- Finalize nodes
- Finalize nodes
During step (3), the memory consumption skyrockets to 12 GB (100%). Also, by reloading a few times, it doesn't always appear that step (2) gets consistently faster after caching. Some reloads appear to take as long as the first time.
On two occasions, after reloading a few times (and losing focus with the window while it was loading (not sure this is necessary for it to happen)), the Windows UI ended up crashing. Likely because of the memory usage.
I suspect a specific object might be the culprit as other big worlds don't suffer nearly as much.
This doesn't appear to be a regression however, the memory usage was already huge on master.