(08-15-2013 09:45 PM)Esenthel Wrote: Hello!
I've replied to the 2nd thread about game world deletion.
As for your issue, I don't think there's anything wrong on the engine side, it just calls save for all objects.
Perhaps you have too many objects? Do you use "embed into terrain" for most of the terrain objects? Those won't need to be saved.
Thanks for the reply Esenthel. We manage to resolve the slow save/exiting issues and the large memory usage.
1. [Solved] Saving is like you said it save every object in the map, and this include all the events that we have for the game. Hence the slow saving. We managed to exclude the event's from Saving hence solve this problem. We need to check if the item are "embed into terrain" but I believed that most are.
2. [Solved] Exiting the game takes too long is also due to the 1st issues above. This also solved once the saving is done.
3. [Solved] The game takes so much memory. This is due to one function called Frustum not implemented. Thanks to Zervox over this recommendation. Once implemented, the memory usage drop by half, and stabilized over 320mb at most.
4. (Need Esenthel Urgent Attention) However the last and most important issues that we didn't manage to solve is the Huge Performance Drop when in Deferred/Forwarding Mode. Also there is a big difference performance drop between EE 1.0 built 22 and built 24 in deferred mode as I mentioned above 1st post hence we use revert back to Build 22. Forward Rendering does not work with our project (in either build).
However we discover (thanks to Zervox for spotting this) that it is Shadow that causing a huge drop in the performance when used in Deferred mode. Without Shadow, we get decent 30-40fps but once the shadow is on it drop to 15-25fps, which by half but depends on the terrain. We set the shadow quality mode to the lowest too. This only happened for outdoor maps, but for indoor maps such as inside a building or dungeon/caves the performance are very stable at 40-50fps even with full shadow quality. Only outdoor map/world that have serious performance issues. Esenthel if you could advise us on what we should do, we would really appreciate it. Looking forward to hear from you on what you think we should do.