Page MenuHomeFeedback Tracker

preloadTexture command
New, NormalPublic

Description

I'd like to request a new command to preload textures without having to resort to hacks like showing them on the UI outside of the screen. This is useful for many purposes, including new ui2texture feature, discussed here: T170766

Suggested syntax:
BOOL = preloadTexture STRING

Command should initiate texture loading and return false until it finished streaming in after which point it should return true.

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Category
Scripting

Event Timeline

Would this also help with textures used by UI, particles or even game assets?

Like one can force preloading via config (PreloadConfig and PreloadTextures) - aka would be good to have also via mission desc.ext or scripting (best).

Would this also help with textures used by UI, particles or even game assets?

Like one can force preloading via config (PreloadConfig and PreloadTextures) - aka would be good to have also via mission desc.ext or scripting (best).

Should be any textures used anywhere you want, as long as you have exact texture path. You can already do preloading through UI, personally I do it by having a display with RscStructuredText which draws all textures that I need to have preloaded in it, then I close the display later. Having a scripting command instead of using tricks like this will be the best.