We are making a game where performance is a huge issue. The UI artist wants to add some post-process effects when the player’s inventory is open. They are currently using the Bokeh DoF settings. When a player opens their inventory, the game is not paused so enemies will still be able to seek out and engage the player. I’m on a really good machine and when I applied those settings to my normal in-game camera, I was dropping a lot of frames. I am concerned that the player will be able to be engaged and killed before they have a chance to respond due to the high latency caused by the post-process effect settings. I am also curious to know if this could affect other players as this is a multi-player game.
Thanks for your question. Can you sanitize your question, so that it can be shared with the rest of the community? We’d love for others to be able to reference the thread.
As a client, your degraded performance will affect you, but shouldn’t affect other clients. Worse case, you don’t process packets as fast as the server is sending them (and this could have some impact on the server), but performance would have to be really bad for this to happen (5 fps or worse).
BokehDOF wasn’t made for in game use - we used it in multiple demos (cutscenes)
I suggest to use GaussianDOF or at least switch to it when the machine is a lower spec.
You can tweak quality/performance with some settings (DepthOfFieldColorThreshold, Size of the Bokeh),
Screen/Render resolution (You could render in lower resolution and put 2D UI in full resolution on top)
some older info:
We think this post contains useful information which we would like to share with our public UE4 community. With your approval, we would like to make a copy of this post on the public AnswerHub which includes the discussion but strips out your username and company name. Please let us know if you are okay with this.
I was most concerned about what happens on the client while the player has their inventory open.
Oh yes, sorry I wanted to get the networking question answered, I’ll forward this along to someone on the rendering team who will be much better equipped at answering that
No problem! Thanks for the quick response
That was my thinking as well. Thanks for clarifying!
Yes, I will do so later on today and respond to this comment when I have done so.
I think this should be ok for the public community as long as the company name is removed. Thanks!