Comments (8)
With that said, the leaks are likely not in the scene editor itself but on the property grid (and/or quantum nodes). I can reproduce an increase in memory by switching between selecting a Scene asset and the GameSettings asset in the asset view.
from stride.
This image shows some of the instances retained after selecting two different assets:
AssetRootNodePresenter
seems like a good start, it likely is rooted somewhere and prevents its references from being collected. Here are the root paths for one of the two retained AssetRootNodePresenter
:
So, all of the links to the node at the top should have released their reference to it but haven't for some reason. I don't have time to look into it further than this right now, so I'll leave it for now
from stride.
We have a previous/next system (based upon the undo/redo stack) which records selection of items in asset view or in scene hierarchy, so it is expected to have slight increase in memory when changing selection.
from stride.
the memory increasse is 6-7mb per click in the hierarchy, i didnt click often to reach 1gb of memory
it would make more sense to release the UI on click and on undo go back to the previous UI and build the UI again
overall in gamestudio its a problem that nothing is getting released
from stride.
it would make more sense to release the UI on click and on undo go back to the previous UI and build the UI again
I have no idea what you mean by that.
from stride.
lets say the method exists "BuildUiOnHierarchyClick"
currently you click, BuildUiOnHierarchyClick(target) runs, you click again, the UI gets stored in the undo command
instead of storing the entire UI in the UI command you can just store BuildUiOnHierarchyClick(previousTarget) , so if you undo you build the previous UI again, instead of storing the entire UI
from stride.
There is no such thing, that's not how the undo/redo system works. It doesn't store anything related to UI.
from stride.
With that said, the leaks are likely not in the scene editor itself but on the property grid (and/or quantum nodes). I can reproduce an increase in memory by switching between selecting a Scene asset and the GameSettings asset in the asset view.
a slight increase would be reasonable but 7mb per click is a little bit too much
from stride.
Related Issues (20)
- [GameStudio] Crash whenever the user changes a struct value in the property grid HOT 1
- Contextual menu icons could be bigger HOT 5
- Property Grid Summary Area, user experience suggestions.
- Property Grid Expand Inconsistencies
- When importing models with multiple materials, only the first is included HOT 4
- Crash when changing material type + crash reporter crash HOT 1
- [FEATURE REQUEST] Add a button to update navigation mesh.
- Material Clone?
- Copy model specified material error HOT 1
- Game Studio crashes when loading HTTP abstractions HOT 7
- Model import failing 'Can only merge simple MeshDrawData'
- Grayscale textures for Non-windows platform
- [Docs] Update Entity.cs XML Comments
- Trimmable - Winforms crash on startup HOT 1
- Breaking SpriteBatch behavior change starting from Stride 4.2.0
- Stride.Physics.Test.Windows and Stride.Engine.Test.Windows projects fail to build on branch master HOT 13
- [Physics] Cleanup fix for recursive reattach issue in PR #2439
- PhysicsComponent ReAttach logic error
- Update the FPS template to include an example of Gun/arms Clipping
- Crash when docking tab side by side. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stride.