How to get more FPS playing in PIE window? (interpret diagnostic tools)

I need to get a few more FPS while playing in PIE window.
When I play in the viewport everything is fine. I get 70-90 FPS and the game runs smoothly.
But in PIE window I only get between 20-40 FPS and the game has some lag.

I know that my graphics card is not the best on the market, but I think it can give me a few more FPS because while gaming it only uses about 20%. (in cinematic mode).

And I think that the CPU is not the problem either because it is not very fast either but it has a lot of cores. The use playing in cinematic does not reach 50%. (in cinematic mode)

And the RAM is not a problem either because I still have 80% available.

So I was searching the forum and found this post

I’ve been testing the tools but right now the only data I know how to interpret is “stat raw”
The rest is like Chinese Cantonese for me.
I know I need time to understand what each thing means.
However, a little help getting started would be great right now.

So I’ve made some videos to show you in case you can help me with this matter.

I was only able to record a minute of each video. So please pause it if you need to see it better.

Tool: Stat Raw

Tool: Stat Initviews

Tool: Profilegpu

Some screenshots in case the video resolution is not good enough.

Can you see something that is causing the problem?

Maybe there is something in the engine configuration that allows to increase the use of the GPU?

NOTE: In LOW scalability mode I also get very low FPS and lag. (cinematic mode were just tests to see the maximum use of the hardware).

Thank you very much for your help!!!

I found a few random things that affect the FPS number a lot.

First disable framerate smoothing in project settings.

Then close all other windows of other programs.
Also close as many tabs as possible in the Unreal editor.

While smaller the viewport window is, then more FPS you can get.

At the moment I have achieved about 50 FPS in PIE window by doing the above steps.

But I know that my graphics card can do much more than that because it is only working at 3%… That’s why I think that Unreal is limiting the performance of the card in some way.

Any way to modify that?

Another thing that I think is affecting FPS is my behavior tree. I think it has too many OnTick functions. That is why you see a graph with so many oscillations. So I’m going to work on that now and see if it improves performance.

I also found some videos on YouTube to optimize the performance of the game. But it doesn’t talk about any of these random things that I’ve found. Basically they talk about LODs, Textures and lighting. And I am totally sure that those things are not my problem.

So knowing that there are external factors to the game that can affect its performance, It is difficult to know if there are really problems in the code or if it is something else interacting with the editor and affecting the performance of the game.

I’m not happy with the little improvements I’ve gotten. If I can get a consistent 60 FPS in every PIE window I might be satisfied.

So please, if you know more random things that affect the performance of the game write an answer here.

Any information that shows how to properly use the tools that Unreal provides would also be very helpful.

Thank you very much for your help!!

What doues stat game tell you?
How many AIs are in your game?
Did you try a level without AI?
You have a real performance loss inside the viewport with 2 instances running, why do you want to have high fps with this setup?
What are your current settings: Are you using lumen, are you using mobile/dynamic lighting or stationary, virtual shadow maps or shadow maps?
Did you look at Unreal Insights in Unreal Engine | Unreal Engine 5.0 Documentation ?

2 Likes

Hey, thanks for your comment!!
I will answer you step by step.

- What doues stat game tell you?

-How many AIs are in your game?
I’m not using the Advanced Locomotion System… I didn’t know it existed. But thanks to you now I know. It seems like a very interesting tool. I’m going to study it.

-Did you try a level without AI?
Yes, on an empty level, and it actually performs better. I get between 50 and 70 FPS in each PIE window.

-You have a real performance loss inside the viewport with 2 instances running
Wow… When I run two Standalone instances the performance is amazing. I get about 180FPS in each window.

-Why do you want to have high fps with this setup?
I am programming a multiplayer game. I need to test what happens on the client and server side continuously. I want the game to run smoothly. The lag is very annoying and it seems that something is wrong.

-What are your current settings:
-What are your current settings: Are you using lumen, are you using mobile/dynamic lighting or stationary, virtual shadow maps or shadow maps?
No, I am not using lumen, nor dynamic lights, and the shadow map is not virtual.
When I started this project with Unreal 4.27 (a few months ago) I had a very old and very bad computer. And it was a miracle that my old graphics card could run the engine. So I had to disable all these things that require a lot of resources.

-Did you look at Unreal Insights in Unreal Engine | Unreal Engine 5.0 Documentation ?
It’s wonderful, just what I need to learn how to use the testing tools. Thx u so much!!


So what do you think could be the real problem?
That the PIE windows run in the same instance?
That the behavior tree is badly optimized?
The two things above?
Or maybe, or in addition, is there something else slowing down performance?

Thank you very much for all your questions. They helped me see the problem from another perspective!! Very appreciated!!


From your infos I’d think that you could try to lower your Tick Events. And, I hope I am not wrong here ( :smiley: ) when you look at your STAT FPS with Game, Draw and GPU you can look at it like Game => what needs to be calculated (AI, GameLogic), Draw => what should be visible, sent info to GPU, GPU=> produce the visible picture. So, if your CPU is already at a high MS number you could reduce some GameLogic. Is the GPU at a high MS number, reduce effects etc. And have a look at all the profiling tools.

1 Like

Hi

Thank you very much for your help. It has been very useful for me.

I thing I still need to learn many many more things about Unreal. Step by step, with the available tools, a lot of patience, I think I’ll be able to achieve a good performance in my game.

A thousand million thanks!


I found this video on YouTube… I think it’s a great introductory explanation for anyone who has no idea about optimization (like me). :slight_smile:

I’m leaving it here so people reading this thread in the future can see it.


:sparkling_heart: