Unity 6 Client Slow Startup with Memory Protection

Issues related to VMProtect
Post Reply
mrt
Posts: 2
Joined: Mon Apr 21, 2025 3:22 am

Unity 6 Client Slow Startup with Memory Protection

Post by mrt »

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.
Admin
Site Admin
Posts: 2686
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Unity 6 Client Slow Startup with Memory Protection

Post by Admin »

Could you send a very simple example (original EXE+VMP files) that shows your problem?
mrt
Posts: 2
Joined: Mon Apr 21, 2025 3:22 am

Re: Unity 6 Client Slow Startup with Memory Protection

Post by mrt »

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.
Admin
Site Admin
Posts: 2686
Joined: Mon Aug 21, 2006 8:19 pm
Location: Russia, E-burg
Contact:

Re: Unity 6 Client Slow Startup with Memory Protection

Post by Admin »

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.
Post Reply