Hi,
I upgraded my Unity engine from Unity 2020 to Unity 6.
After the upgrade, the client takes a few minutes to start.
I found that this issue is related to the Memory Protection option in VMProtect.
I tested two scenarios: one with all functions removed and only Memory Protection enabled,
and another with only Memory Protection disabled.
In the first case, the startup was still slow, but in the second case, it launched quickly.
Hope you can help us figure out a way to fix this.
Thanks.
Unity 6 Client Slow Startup with Memory Protection
Re: Unity 6 Client Slow Startup with Memory Protection
Could you send a very simple example (original EXE+VMP files) that shows your problem?
Re: Unity 6 Client Slow Startup with Memory Protection
Files are large, so I'll share it on one drive (via PM)
I allowed info@vmpsoft.com, admin@vmpsoft.com email addresses for access,
please PM for any additional accounts that need to be access.
I allowed info@vmpsoft.com, admin@vmpsoft.com email addresses for access,
please PM for any additional accounts that need to be access.
Re: Unity 6 Client Slow Startup with Memory Protection
The problem occurs while GameAssembly.dll fills own strunctures in the ".fptable" section. It calls VirtualProtect every time and VMProtect checks the list of protected regions, so the speed is much slower than without protection. Anyway, this behavior of GameAssembly is very strange because ".fptable" already has writable flag and don't need to call VirtualProtect.