Skip to content

village_center.wbt needs some optimizations #3296

Open
@ad-daniel

Description

@ad-daniel

Describe the Bug
World village_center.wbt needs some optimizations.
During the loading it goes through the processes:

  1. Parsing Nodes
  2. Downloading assets
  3. Finalize nodes
  4. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    optimizationMake the code faster to execute

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions