Skip to content

Conversation

nborde-CSM
Copy link
Collaborator

Before creating a PR, please check that:

  • Code is clean
  • Tests are still working (cypress tests and yarn test)
  • Changes don't cause new errors or warnings in browser console
  • Documentation is up-to-date
  • Breaking changes are clearly identified with conventional commits

@nborde-CSM nborde-CSM requested a review from Copilot September 18, 2025 15:31
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes memory leak risks in the PIXI.js graphics rendering system by improving resource cleanup and display object management.

  • Introduces comprehensive memory management functions with proper destroy options
  • Refactors arrow drawing functions to return graphics objects instead of directly adding to stage
  • Updates link graphics creation to use container hierarchy for better memory management

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/views/Simulation/utils/pixiUtils.js Adds freeDisplayMemory function, refactors drawing functions to arrow functions, and improves link graphics container structure
src/views/Simulation/utils/MinimapContainer.js Adds freeDisplayMemory method and enhances destroy calls with additional cleanup options
src/views/Simulation/components/Scene/Scene.js Replaces inline cleanup logic with centralized freeDisplayMemory function

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@nborde-CSM nborde-CSM force-pushed the NBO/fix_memory_leak_when_animation_is_playing_PROD-14740 branch from b13bb37 to f9fa639 Compare September 18, 2025 15:34
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-sky-06b519003-1046.westeurope.2.azurestaticapps.net

1 similar comment
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-sky-06b519003-1046.westeurope.2.azurestaticapps.net

@nborde-CSM nborde-CSM force-pushed the NBO/fix_memory_leak_when_animation_is_playing_PROD-14740 branch from f9fa639 to 9b0dfc2 Compare September 18, 2025 16:08
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-sky-06b519003-1046.westeurope.2.azurestaticapps.net

@nborde-CSM nborde-CSM force-pushed the NBO/fix_memory_leak_when_animation_is_playing_PROD-14740 branch from 9b0dfc2 to 397047e Compare September 19, 2025 08:01
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-sky-06b519003-1046.westeurope.2.azurestaticapps.net

@nborde-CSM nborde-CSM force-pushed the NBO/fix_memory_leak_when_animation_is_playing_PROD-14740 branch 3 times, most recently from 1e79d88 to 05475e0 Compare September 19, 2025 20:46
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-sky-06b519003-1046.westeurope.2.azurestaticapps.net

1 similar comment
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-sky-06b519003-1046.westeurope.2.azurestaticapps.net

@nborde-CSM nborde-CSM force-pushed the NBO/fix_memory_leak_when_animation_is_playing_PROD-14740 branch from 05475e0 to f2aa01a Compare September 22, 2025 07:59
Copy link

Azure Static Web Apps: Your stage site is ready! Visit it here: https://black-sky-06b519003-1046.westeurope.2.azurestaticapps.net

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants