Hello hello! I am getting big hitches in game caused by something relating to EndFlushResourcesRHI, I am testing in standalone game but the same issue happens with in editor traces. I’ve tried switching graphics drivers, disabling/enabling g-sync. The photos attached are from empty thirdperson 5.4.2 and 5.4.3 projects. I have also tried disabling both nanite and lumen. Any help is much appreciated!
It’s basically telling the graphics card to clear out resources via
RHICmdList.ImmediateFlush(EImmediateFlushType::FlushRHIThreadFlushResources);
Inside the flush command it also waits for tasks to finish before it can dump the data to prepare for fresh render commands.
Seems epic did a lambda rebuild inside of the class. Not sure how optimized it is, but it seems to have quite a lengthy comment regarding how things had to be moved to delegates to have the correct execution.
It’s probably waiting for tasks (compute shader calculations and other shader effects) to end before it can finalize.
Is your scene changing drastically at high speed, changing shaders at a fast pace? Dumping and uploading whole shaders at a time. Are the shaders very complex? (how does your shader complexity look via F5 is it green or lots of red)
Thanks for replying! In the default third person project I was moving my camera around but I think it still happens if you just stand there.
I have just been testing global illumination and it might be happening at any value higher than 1 quality setting for it. Doing more tests and setting it just to 1 causes the spike to go away in my initial tests.
It’s also triggered by texture streaming. So on a smaller scene you could try turning off streaming and see if the spike occurs. (OFC not viable in larger projects)
Just tried epic all scalability and texture streaming off and the spikes were definitely lessened
This is the scene for example, almost all assets are sharing the same texture sheet and are vertex colored. Maybe the texture streaming was glitching out because of this?
You can try optimizing the streaming via ini files
I have been doing more tests and the issue is still occuring, it happens in default third person unreal projects in 5.3.2 and 5.4.3, so at this point I don’t know what to do.
Yo again! I stripped out almost all of my gameplay logic, and have all unreal insight channels enabled and events. What is causing this Spike? I figured out one of the spikes is caused by RHI, which Wait For Task taking too long in Development Build - #12 by MadaraAlmighty is being fixed in the next hotfix. But what about this one? seems to be nothing causing it.
Only thing in that space is quartz clock, frame, and engine tick
I was forced to update from 5.3 to 5.4 because of Google Play Market rules.
As soon as I did that, I have lost my 60 fps and now it is 50. Noticable difference. As soon as I add more content to the game, it starts being too sluggish. :\
utrace on 5.4:
utrace on 5.3:
Android Vulkan, POCO X3 phone