Alienhead Posted March 8 Share Posted March 8 I just created 2 components in the editor using the + . Upon entering run mode a few times... I get this again; Then looking over the backup directory, I'm being spammed with .bak's again : Obviously the json files WERE automatically generated.. So I have no idea why it's complaining. 1 Quote Alienhead Components and Software Link to comment Share on other sites More sharing options...
Alienhead Posted March 8 Author Share Posted March 8 Could this have anything to do with the extended load times? I'm just saying, look at this simple scene : 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. 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. Quote Alienhead Components and Software Link to comment Share on other sites More sharing options...
Alienhead Posted March 8 Author Share Posted March 8 I just ran a few numbers looking for the bottleneck, it definitely has something to do with Terrain. A single terrain with no texture layers loads almost instantly, with 4 texture layers about 8.3 secs to load All other mesh and models takes around 1 - 2 secs to load.. Quote Alienhead Components and Software Link to comment Share on other sites More sharing options...
Alienhead Posted March 8 Author Share Posted March 8 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 Quote Alienhead Components and Software Link to comment Share on other sites More sharing options...
Alienhead Posted March 8 Author Share Posted March 8 Some more tests: single terrain 512x512 no texture: 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 ) Load time is over 10 secs.. adding a third and forth layer really jacks the load time up passed 20 secs. Quote Alienhead Components and Software Link to comment Share on other sites More sharing options...
Alienhead Posted March 8 Author Share Posted March 8 Okay this test was interesting... I lowered all terrain textures to 512x512 and converted to dds. 3.6 load time on a 1024x1024 terrain with 5 texture layers 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. Quote Alienhead Components and Software Link to comment Share on other sites More sharing options...
Solution Josh Posted March 8 Solution Share Posted March 8 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. Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Alienhead Posted March 8 Author Share Posted March 8 By gosh I believe that's it. 1.5 sec load time.. awesome. 1 Quote Alienhead Components and Software Link to comment Share on other sites More sharing options...
Recommended Posts
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.