Jump to content

Increase in memory usage with each world load


photo

Recommended Posts

There is an increase in memory usage each time a world is loaded. This memory does not seem to be released until app shutdown.

 

Create new project with SDK browser, run

show_profiler 1

Memory: 16.639MB

world_reload

Memory: 16.640MB

world_reload

Memory: 16.641MB

world_reload

Memory: 16.642MB

....

 

 

This is pretty insignificant in an empty project, but in our application, memory usage increases as much as ~500KB with each world load. I assume some portion of this is from our own errors and failures to deallocate memory, but it is hard to be totally sure when a brand new project has a similar problem.

 

What accounts for the 1KB increase in memory with an empty project? And what is the best way to identify memory usage problems across world load in our own application?

Link to comment

Hi Adam,

 

It can be literally anything: starting from the messages in console, ending with memory leaks in new / delete operations. 1 KB memory increasing on world_reload considered as expected behavior. In your case, I'm afraid you have to debug it on your side. Unfortunately, we don't have any hints that will help, because every case is different.

 

If you will have troubles with debugging - you can send us your project, probably we can give you more useful advises.

 

Thanks!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Link to comment
×
×
  • Create New...