Jump to content

Recommended Posts

Posted

Could this have anything to do with the extended load times?

I'm just saying, look at this simple scene :

image.thumb.png.7f7c4dca65311fedde0f96c56bfc6453.png

No 4k textures, just a terrain and some very low poly meshes.. textures are 1024x1024 and a few 2048 x 2048's and my map load time is 10 secs.

image.thumb.png.fc8ca6ab135227073ed74ed1613c02ac.png

I cant begin to tell you how painful this is when doing a lot of run checks throughout the day, one reason I moved to LUA was to avoid the compile time delays of c++ on map run checks.

This is fastly becoming a  project-stopper for me :( and it makes me sad :(

This delay is not just happening when I load a map up in the editor, I get the same delay when hitting f5 in the editor..  I stare at a blank white screen for 10 secs.   My old project was doing this too, so I decided to start a completely new project just to test this out, and it does the exact same thing with only a few models being loaded.  So I assume my other project which loads 1000's of models is fine and it takes about 11s - 14sec to load that one as well.

 

Posted

To add to this experiment. 

Creating a terrain up to 1024 x 1024 with NO texture layers - the load time is nearly instant. 

Each texture layer adds approx. 3.5 to 4 secs of loadtime.. ( PER TEXTURE LAYER ) ( 1024 x 1024 texture res. )

If this is normal then I would like to know please so I can do something other than terrain.

Settings

 

image.thumb.png.f42c952212b98a98190772573e589a95.png

Posted

Some more tests:

single terrain 512x512 no texture:

image.thumb.png.3827e0c4c1c8357ac41f1476b36be8fc.png

About 3.8 secs to load, this is normal and feels like it normal did.

Now here is 2 texture layers ( textures res is 1024x1024, normal map 1024x1024 and nothing else )

image.thumb.png.6c449531e777b3de0a6049c6167c611a.png

Load time is over 10 secs..  adding a third and forth layer really jacks the load time up passed 20 secs.

Posted

Okay this test was interesting...  I lowered all terrain textures to 512x512 and converted to dds.

image.thumb.png.34d213fb9a0fc809886de504f8122c55.png

3.6 load time on a 1024x1024 terrain  with  5 texture layers

image.thumb.png.c9e3e2b5bf5ff351f69fe25219c5b7f0.png

Are dds more optimized for the loader in the engine?  Should we use dds over all other formats whenever possible?

Other than lower terrain detail, which I'm working on a top down game anyways, i say the problem lies with in terrain layers exceeding 512k res. 

 

  • Solution
Posted

You were loading textures from PNG format? This is extremely slow because all the mipmaps have to be generated each time the image is loaded. Loading a DDS will be pretty much instantaneous.

Also BC7 and BC5 compressed DDS textures will use 25% as much VRAM.

Let's build cool stuff and have fun. :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...