Josh Posted May 17, 2014 Share Posted May 17, 2014 The latest build has an experimental feature, background loading of textures. In the AI lesson map this sped loading time up by 30%. Combined with DXT compression, the loading time in release mode is now less than two seconds. The new command is Texture::SetLoadingMode(int mode) The mode can be: 0: normal / default. This is the regular behavior. 1: deferred loading: This will load textures in gradually, one mipmap at a time. 2: Managed: This will load and unload textures dynamically from memory as they are needed. This is not documented or officially supported, but I thought you might enjoy trying it. The dynamic loading is pretty cool to watch when you start a level. 14 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...
Haydenmango Posted May 17, 2014 Share Posted May 17, 2014 Very nice. I can definitely see improved loading speed. Managed gives me a fps boost in game as well. Quote Check out my game Rogue Snowboarding- https://haydenmango.itch.io/roguesnowboarding Link to comment Share on other sites More sharing options...
shadmar Posted May 17, 2014 Share Posted May 17, 2014 This is great!! Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
shadmar Posted May 17, 2014 Share Posted May 17, 2014 How was this set in the 07-AI and Events.map? Quote HP Omen - 16GB - i7 - Nvidia GTX 1060 6GB Link to comment Share on other sites More sharing options...
Josh Posted May 17, 2014 Author Share Posted May 17, 2014 Just add the command in App:Start() and load any map. 1 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...
YouGroove Posted May 17, 2014 Share Posted May 17, 2014 Will it come to Lua ? Quote Stop toying and make games Link to comment Share on other sites More sharing options...
Haydenmango Posted May 17, 2014 Share Posted May 17, 2014 ^already works with Lua (if you have steam beta at least) Quote Check out my game Rogue Snowboarding- https://haydenmango.itch.io/roguesnowboarding Link to comment Share on other sites More sharing options...
Josh Posted May 17, 2014 Author Share Posted May 17, 2014 And now even if you don't. 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...
Einlander Posted May 17, 2014 Share Posted May 17, 2014 Ahh deferred texture loading, reminds me of every single unreal engine game and the swimming textures that get sharper over time. Now I can say I'm using the Unreal engine when asked, wink:wink:nudge:nudge. But seriously, loading is almost instantaneous now. Thanks you for your work Josh. Now I need to find more bugs to give me an excuse for why I'm not being productive with my game making. 4 Quote Link to comment Share on other sites More sharing options...
YouGroove Posted May 18, 2014 Share Posted May 18, 2014 Now I need to find more bugs to give me an excuse for why I'm not being productive with my game making. Same here 1 Quote Stop toying and make games Link to comment Share on other sites More sharing options...
bandrewk Posted July 19, 2014 Share Posted July 19, 2014 I'm experiencing troubles with the managed loading: Any chance that this will be officially supported? I really like it. Quote Link to comment Share on other sites More sharing options...
Josh Posted July 19, 2014 Author Share Posted July 19, 2014 I can't tell what I'm looking at. It looks like maybe the terrain render is getting a partially loaded texture, and so it appears blurry? That makes sense because the terrain only gets rendered when needed. If that is the only issue, I can make it so terrain textures get fully loaded before they are used. 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...
bandrewk Posted July 22, 2014 Share Posted July 22, 2014 I think that's the issue. Sometimes it's just blurred but it mostly turns black in a circular shape round the camera (there are always three circles with different behavior). Quote Link to comment Share on other sites More sharing options...
Olby Posted January 17, 2015 Share Posted January 17, 2015 This is an amazing feature. Maps can now be loaded instantly. However it is missing one crucial aspect. Especially in managed loading mode. Muzzle flashes and UI textures are always blurry. We need an extra check box within the texture editor to force a texture to be loaded fully and not removed from the memory. 1 Quote Intel Core i7 Quad 2.3 Ghz, 8GB RAM, GeForce GT 630M 2GB, Windows 10 (x64) Link to comment Share on other sites More sharing options...
xtom Posted January 17, 2015 Share Posted January 17, 2015 This is pretty cool and will be a great memory saver but if you walk away from something and do a quick 180 you can see a lot of black/texture popup which is quite ugly. I think it should maybe only unload the textures if the player is a good distance away. It seems to happen if they are behind you and only 50 meters or so away. That's so close it's obvious so maybe only unload them if they are 200+ meters away or something. Maybe on an ssd drive it loads them quicker that you wouldn't notice but it's noticeable on my setup with a 7200rpm hard drive. 1 Quote Check out my games: One More Day / Halloween Pumpkin Run 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.