C++ PCH heap memory limit error (UE4)

If you’re getting the dreaded “compiler limit: internal heap limit reached” and the corresponding “Failed to create virtual memory for PCH” then you can use the /ZmXXXX switch to increase the heap memory allocated to precompiled header (PCH) compilation. Luckily, it’s very easy to do in UE4, just put this …in your target.cs: WindowsPlatform.PCHMemoryAllocationFactor = […]

Read More