ulf.schroeter Posted June 1, 2012 Posted June 1, 2012 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.
manguste Posted June 20, 2012 Posted June 20, 2012 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.
fonta.romain Posted June 20, 2012 Posted June 20, 2012 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 ;)
frustum Posted July 14, 2012 Posted July 14, 2012 The required time for objects deallocation has been significantly reduced.
ulf.schroeter Posted July 23, 2012 Author Posted July 23, 2012 Indeed, also our example shows 10-15x speed improvement on shutdown, very good !
Recommended Posts