Jump to content

[SOLVED] Immediate programm termination


photo

Recommended Posts

We have to allocation huge amounts of data objects (700000-800000, 2 GB memory consumption) for 3D visualization. Every thing works fine and stable.

 

The only problem we are facing is that programm termination via engine.console.run("quit") takes nearly 2 minutes, most probably due to object instance destruction and memory freeing (its visible in the windows task manager)

 

Is there any way for an immediate hard programm termination (e.g. kill) without UNIGINE memory cleanup ? We are working under Windows XP and 7.

Link to comment
  • 3 weeks later...

Your use case is perfectly clear, waiting for 2 minutes is a pain in the neck, but from our point of view it does not seem like a good idea to include this into the base SDK. Forcing to kill a process without deallocation of memory is in no way a graceful shutdown policy. If you allocated some memory, clean up after yourself.

 

If you work only in Windows XP and 7, you can write a small C++ plugin that kills a process on demand.

Link to comment

In some cases, when the application know that everything is shutting down, it could release memory differently.

 

For instance, in my last company, we used to manage many many objects with a scene graph (50K+ objects).

 

Dereferencing them when we were loading a whole new scene took 2/3 min and that was too long !

 

However, in the case that we knew that we were exiting the application, instead of deleting the root node and let the deletions go through the graph, we deleted all nodes in one call (I'm simplifying but you get the main idea) and the application exited just as a normal one.

 

Don't know if something similar could be done in Unigine and if it's really world deletion that lead to performances drop ;)

Link to comment
  • 4 weeks later...
  • 2 weeks later...
×
×
  • Create New...