suriyun-production / mmorpg-kit-docs

This is document for MMORPG KIT project (https://www.assetstore.unity3d.com/#!/content/110188?aid=1100lGeN)
https://suriyun-production.github.io/mmorpg-kit-docs
49 stars 11 forks source link

Instance Map termination problem #2471

Open mhmmdciftciler opened 1 month ago

mhmmdciftciler commented 1 month ago

Even when there are no players in Instance Maps, Linux doesn't kill the process about instance map so the resources used are not given back to the operating system. Version 1.86f. I had this issiue with your native demo. Warp Portal Type => Enter Instance. Ekran görüntüsü 2024-05-16 233722 Ekran görüntüsü 2024-05-16 233745 Ekran görüntüsü 2024-05-16 233813 Ekran görüntüsü 2024-05-17 003412

mhmmdciftciler commented 1 month ago

image It was a nice solution in my case. It works for Instance Maps if it doesn't cause any other problems.

insthync commented 1 month ago

Hmm, seems like it would not, I will apply it

insthync commented 1 month ago

You should not do it, because it has to make sure that all data were saved before kill the process, look at MMOServerInstance -> Application_wantsToQuit, and MapNetworkManager -> ProceedBeforeQuit

I am not sure about Unity process killing too, not sure that with Application.Quit(), the process will be killed properly or notl.