Jump to content
  • Advertisement
Sign in to follow this  
Trakaiz

Create a game with no lag? (Unreal Engine 4). All tips appreciated!

This topic is 917 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi,

 

I'm creating an online survival game (In Unreal Engine 4). I got everything on paper: how it's supposed to work, the items... .

 

In my world I would like to use some assets people made, like rocks, trees..., but I have no idea if it's going to make the game lag.

I tried a few assets and textures from the Kite Demo, and alot of them already take a long time to load.

 

These assets are high quality. How do i know if my game is going to lag when finished? Are the players able to use lower quality in game?
I don't want my game to be like DayZ (lag even at normal quality and not looking good)

 

Please tell me what I can do best. All tips are greatly appreciated!

Share this post


Link to post
Share on other sites
Advertisement

Just to clear up some terminology:

"Lag" in this context is usually reserved for delays due to network latency. The main things here involve network speed & stability, as well as how much data you have to transmit between server/clients.

"Frame rate drops/low frame rate" is usually reserved for the game playing at a low frame rate. This can be caused by having too much performance heavy AI or calculations (CPU bound), or by trying to draw more than the client's computer can reasonable handle (GPU bound) -- or a mixture of the two. This will vary wildly based on the player's hardware. The only reasonable thing you can do here is set a minimum requirement, and test the game on that hardware. There are things you can do to help some of these issues (GPU especially), by allowing different render resolutions, post-processing effects, etc.

 

Asset load time would mainly impact frame rate, but there's not always a strict correlation. A game with a 2 minute loading screen can have better performance than a game loading for 1 minute.

 

Generally, it's hard to say "this will make the game too slow" -- a lot will depend on the actual implementation.

Set a target hardware, and test regularly on it. If the game runs too slow, use profiling techniques to figure out why it's too slow. Maybe there's code you can optimize to make the problem go away, or maybe you just need to make the assets more light-weight. There's no 1 true answer here. It will depend on what you have and what you're doing.

Share this post


Link to post
Share on other sites

Just to clear up some terminology:

"Lag" in this context is usually reserved for delays due to network latency. The main things here involve network speed & stability, as well as how much data you have to transmit between server/clients.

"Frame rate drops/low frame rate" is usually reserved for the game playing at a low frame rate. This can be caused by having too much performance heavy AI or calculations (CPU bound), or by trying to draw more than the client's computer can reasonable handle (GPU bound) -- or a mixture of the two. This will vary wildly based on the player's hardware. The only reasonable thing you can do here is set a minimum requirement, and test the game on that hardware. There are things you can do to help some of these issues (GPU especially), by allowing different render resolutions, post-processing effects, etc.

 

Asset load time would mainly impact frame rate, but there's not always a strict correlation. A game with a 2 minute loading screen can have better performance than a game loading for 1 minute.

 

Generally, it's hard to say "this will make the game too slow" -- a lot will depend on the actual implementation.

Set a target hardware, and test regularly on it. If the game runs too slow, use profiling techniques to figure out why it's too slow. Maybe there's code you can optimize to make the problem go away, or maybe you just need to make the assets more light-weight. There's no 1 true answer here. It will depend on what you have and what you're doing.

Thanks for the tips! 

Share this post


Link to post
Share on other sites

Do you know how to program in c++...???

No I don't, I don't know any code language

Edited by Trakaiz

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!