UE4 is proving itself to be a hell-hole… I switch a default value of a booleon to true in a blueprint and BAM it freezes forever (I gave up after 2 hours of waiting, exited the engine through Task Manager and then the Blueprint ended up being unopenable anymore).
I move an InstancedStaticMeshBlueprint around and BAM it freezes for like 5min… I open a level which I’ve been working on that is almost still completely empty and it freezes again… I switch nodes and bam it freezes again… etc
In short, everything freezes when I make a big enough blueprint even without compiling
And please don’t give me the “Your PC isn’t powerful enough”
I tracked my GPU, CPU, RAM, and hard drive usage and nothing… None of them go past 35%…
I don’t know what causes it. I don’t have any infinite loops and it’s not like a freeze should happen when the blueprint isn’t even compiled yet, since it shouldn’t be making any direct changes to anything,
Can someone please help me in making it not freeze anymore? Can someone please tell me how I can make Unreal Engine use more than 35% of my PC?
Like suddenly Unity seems like a pretty good engine comparatively.
Unreal is using 2 threads when running: rendering + game, so considering your CPU (8 threads) it should cap at ~25%. The exception to this is when you import files, bake lightmaps, compile code or shaders, as those processes are multi-threaded and should use as much CPU time as you have available. Your GPU usage will solely depend on the scene complexity (polygon count, shader complexity, etc.). I would strongly recommend investing in an SSD, especially since they are really cheap now and the performance boost will be incredible.
As for your freezes, is that happening only on 4.9? If you create a completely clean project will it freeze too? You might post your engine/game logs to see what the engine was last working on before you killed it.
You can find game logs in Unreal Projects\YourGameName\Saved\Logs
And engine logs in: Program Files\Epic Games\4.9\Engine\Saved\Logs
Thank you very much for taking the time to respond!!!
Clean projects do not freeze and everything runs very smoothly- no loading times, no stutters. Only happens when I have created a semi-complex Blueprint may it be not even put in the level (I am doing a simple maze with a backtrack algorithm).
As for the SSD, I had considered that possibility but unless the new task manager is lying to me with its graphing of the disk transfer rate it does not seem to go beyond 60% of it’s capability and it is at 0%-1% when the engine freezes. I am currently downloading the 4.10.4 version of UE4, so I will see how that goes.
I attached the log: Sadly, I do not have the knowledge to understand them.
The task manager is showing small HDD usage not because it doesn’t need to utilize more but because of the limitation of the mechanical parts, it’s showing you a % of potential maximum sequential read/write. I recommend reading this article for more information: Should You Upgrade? From A Hard Drive To An SSD (it’s quite old, but the comparison is still valid, if anything the SSDs got much better and cheaper now).
As for the editor problem, looking at the log it seems you DO have an infinite loop, here:
[2016.03.08-01.51.53:101][609]LogScriptCore: Script call stack:
Function /Game/3DMazeBarebones.3DMazeBarebones_C:UserConstructionScript
Function /Game/3DMazeBarebones.3DMazeBarebones_C:PickNearbyTile
[2016.03.08-01.51.53:101][609]LogScript:Warning: Runaway loop detected (over 1000000 iterations)
3DMazeBarebones_C /Game/3DMaze.3DMaze:PersistentLevel.3DMazeBarebones_40
Function /Game/3DMazeBarebones.3DMazeBarebones_C:PickNearbyTile:01EE
So look in your PickNearbyTile loops, or if you can, paste the screenshots here.