CLion takes forever to load Unreal project.
Loading my Unreal project takes about 15 minutes for CLion. My CMakeLists.txt ends up being 1.6 MB for Unreal. There are some steps that are being implemented in Unreal to break it down into multiple smaller files, until that happens are there any JVM settings I should adjust to improve load times?
Current JVM options:
# custom CLion VM options
-server
-Xss32m
-Xms8192m
-Xmx8192m
-XX:NewSize=512m
-XX:MaxNewSize=512m
-XX:+UseParNewGC
-XX:ParallelGCThreads=8
-XX:MaxTenuringThreshold=1
-XX:SurvivorRatio=8
-XX:+UseCodeCacheFlushing
-XX:ReservedCodeCacheSize=240m
-XX:+UseConcMarkSweepGC
-XX:+AggressiveOpts
-XX:+CMSClassUnloadingEnabled
-XX:+CMSIncrementalMode
-XX:+CMSParallelRemarkEnabled
-XX:CMSInitiatingOccupancyFraction=65
-XX:+CMSScavengeBeforeRemark
-XX:+ScavengeBeforeFullGC
-XX:+UseCMSInitiatingOccupancyOnly
-XX:-TraceClassUnloading
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-XX:MaxJavaStackTraceDepth=-1
-Dawt.useSystemAAFontSettings=lcd
请先登录再写评论。
Hi Michael.
It's a known problem, we are working on the improvements right now! Hope it will be fixed soon. As a workaround could you please try using https://github.com/dotBunny/CLionSourceCodeAccess? It should work faster. Also we are planning to add a new blog post about working with UE4 in CLion on the next week. Please stay tuned!