ahmad 3 Report post Posted July 14, 2018 helo how can we make our game exe less using for ram so players with normal pc can play without lag there is way or can't do that? in this photo compare loading 4 client of pko and loading 1 normal client 1.38 1 Quote Share this post Link to post Share on other sites
V3ct0r 2,117 Report post Posted July 14, 2018 Hello, @ahmad! Probably they did optimizations on the source code level. I think you know about "limits" for .bin tables, for example ItemInfo.bin, CharacterInfo.bin and etc. Usually people wants to increase them, but you also can decrease the limits. For instance lets take ItemInfo.bin. In my client one item occupies 868 bytes of memory. So, 6k items (default limit) will occupy about 5 Mbytes of memory, 9k items about 7.5 Mbytes and 32k items about 26.5 MBytes of memory. 1 1 Quote Some useful links / Полезные ссылки Tips for making a topic in 'Questions & Help' / Рекомендации по созданию тем в разделе "Помощь" Server Advertising Section Rules / Правила раздела "Реклама серверов" Available e-mail domains for registration / Допустимые e-mail домены для регистрации User groups / Группы пользователей User ranks / Звания пользователей "Broken" pictures on the forum / "Битые" изображения на форуме Beware of scammers! / Осторожно, мошенники! My developments / Мои разработки Mods for client and server / Моды для клиента и сервера PKOdev.NET website for Tales of Pirates Server / PKOdev.NET веб-обвязка для сервера Пиратии I do not provide any help in private messages and outside the forum. Use 'Questions & Help' section please. Thank you for understanding! Я не оказываю какую-либо помощь в личных сообщениях и вне форума. Пожалуйста, используйте раздел "Пиратия: Помощь". Благодарю за понимание! Share this post Link to post Share on other sites
ahmad 3 Report post Posted July 14, 2018 (edited) 18 minutes ago, V3ct0r said: Hello, @ahmad! Probably they did optimizations on the source code level. I think you know about "limits" for .bin tables, for example ItemInfo.bin, CharacterInfo.bin and etc. Usually people wants to increase them, but you also can decrease the limits. For instance lets take ItemInfo.bin. In my client one item occupies 868 bytes of memory. So, 6k items (default limit) will occupy about 5 Mbytes of memory, 9k items about 7.5 Mbytes and 32k items about 26.5 MBytes of memory. yea this make sense they are using 5875 lines for iteminfo and every bin have less amount Edited July 14, 2018 by ahmad Quote Share this post Link to post Share on other sites
Faller 93 Report post Posted July 18, 2018 On 7/14/2018 at 11:10 AM, V3ct0r said: Hello, @ahmad! Probably they did optimizations on the source code level. I think you know about "limits" for .bin tables, for example ItemInfo.bin, CharacterInfo.bin and etc. Usually people wants to increase them, but you also can decrease the limits. For instance lets take ItemInfo.bin. In my client one item occupies 868 bytes of memory. So, 6k items (default limit) will occupy about 5 Mbytes of memory, 9k items about 7.5 Mbytes and 32k items about 26.5 MBytes of memory. Even changing that, I can't imagine this whole change to the memory usage... I mean, it might help with a few megabytes, but decrease it by more than 10x?@ahmad have you checked the memory usage for PKO after you opened it? I mean, right after you open it. My best bet is that you already had these clients open for sometime and system redirected unsued memory to Virtual Memory to free space. 1 Quote Share this post Link to post Share on other sites
quad 17 Report post Posted July 18, 2018 (edited) 14 minutes ago, Faller said: Even changing that, I can't imagine this whole change to the memory usage... I mean, it might help with a few megabytes, but decrease it by more than 10x?@ahmad have you checked the memory usage for PKO after you opened it? I mean, right after you open it. My best bet is that you already had these clients open for sometime and system redirected unsued memory to Virtual Memory to free space. do not forget they must have fixed all known (and possibly unknown) memory leaks. Edited July 18, 2018 by quad 2 Quote Share this post Link to post Share on other sites
Faller 93 Report post Posted July 18, 2018 9 minutes ago, quad said: do not forget they must have fixed all known (and possibly unknown) memory leaks. That's also another great option! But it's kinda impossible to only be changes to the bin limits. I know v3ct0r also mentioned that they must have done changes to the source code, and they surely did, they have some features we have never seen in other servers. But even though, it's a really BIG change to the memory usage. I think most of the textures (UI, terrain floor, etc...) are loaded to memory at boot up, they must have optimized it by changing things like that - only loaded when necessary. 1 Quote Share this post Link to post Share on other sites
mkhzaleh 131 Report post Posted July 18, 2018 (edited) 31 minutes ago, Faller said: Even changing that, I can't imagine this whole change to the memory usage... I mean, it might help with a few megabytes, but decrease it by more than 10x?@ahmad have you checked the memory usage for PKO after you opened it? I mean, right after you open it. My best bet is that you already had these clients open for sometime and system redirected unsued memory to Virtual Memory to free space. :P that happen to most top clients after u open it for 30min + get less memory using Edited July 18, 2018 by mkhzaleh 1 Quote Share this post Link to post Share on other sites
Faller 93 Report post Posted July 18, 2018 Just now, mkhzaleh said: :P that happen to most top client after u open it for 30min + get less memory using Exactly what I mean! I didn't bother checking, but I think that's what happens... Quote Share this post Link to post Share on other sites
mkhzaleh 131 Report post Posted July 18, 2018 (edited) 3 minutes ago, Faller said: Exactly what I mean! I didn't bother checking, but I think that's what happens... i did Edited July 18, 2018 by mkhzaleh 1 1 Quote Share this post Link to post Share on other sites
Faller 93 Report post Posted July 18, 2018 Just now, mkhzaleh said: i did Gracias! Guess we have the answer to this thread. 2 Quote Share this post Link to post Share on other sites
V3ct0r 2,117 Report post Posted July 19, 2018 22 hours ago, Faller said: Even changing that, I can't imagine this whole change to the memory usage... I mean, it might help with a few megabytes, but decrease it by more than 10x? +21.5 Mbytes just for items. It is not so little if compare with 400 MBytes of total consumption of memory. And you have other increased limits (CharacterInfo, SceneobjInfo, etc), in summary they can take significant amount of memory. 3 Quote Some useful links / Полезные ссылки Tips for making a topic in 'Questions & Help' / Рекомендации по созданию тем в разделе "Помощь" Server Advertising Section Rules / Правила раздела "Реклама серверов" Available e-mail domains for registration / Допустимые e-mail домены для регистрации User groups / Группы пользователей User ranks / Звания пользователей "Broken" pictures on the forum / "Битые" изображения на форуме Beware of scammers! / Осторожно, мошенники! My developments / Мои разработки Mods for client and server / Моды для клиента и сервера PKOdev.NET website for Tales of Pirates Server / PKOdev.NET веб-обвязка для сервера Пиратии I do not provide any help in private messages and outside the forum. Use 'Questions & Help' section please. Thank you for understanding! Я не оказываю какую-либо помощь в личных сообщениях и вне форума. Пожалуйста, используйте раздел "Пиратия: Помощь". Благодарю за понимание! Share this post Link to post Share on other sites
Faller 93 Report post Posted July 23, 2018 On 7/19/2018 at 3:33 PM, V3ct0r said: +21.5 Mbytes just for items. It is not so little if compare with 400 MBytes of total consumption of memory. And you have other increased limits (CharacterInfo, SceneobjInfo, etc), in summary they can take significant amount of memory. I see, thanks for the info! I never knew they used that much memory. Good thing I've been removing all unused items from my iteminfo. :) But even considering this quantity, I don't think we'd ever achieve such a huge decrease, after all, the only bins that are actually modified are iteminfo, character info, sceneceobj - the others only a few lines... 1 Quote Share this post Link to post Share on other sites