Lazy texture loading #2304
Comments
Per uploaded file |
Per uploaded file Example of how various texture lines can be removed and the game will still work |
Buginator commented Doesn't this encourage bad practices ? Before, at least we had a list of textures that we used, now, it can be anything, and it would make it easier to forget to add textures. I know the resource system is crappy, and this does help with testing things, but I am just not sure if we should allow this in anything but debug builds (for testing). |
Per commented You mean add to the revision control system, or add to the resource system? The former is trivially spotted and fixed when it happens, and the latter is a feature by design in this patch. I do not want textures to be listed in the wrf files, unless it is to override a default texture. |
Per Inge Mathisen <per@...> commented (In Warzone2100/warzone2100@8d41118) Add proper filenames to textures for models that are missing this. Required for lazy texture loading, see #2304 |
Per Inge Mathisen <per@...> changed status from |
Per Inge Mathisen <per@...> changed resolution from `` to |
Per Inge Mathisen <per@...> commented (In Warzone2100/warzone2100@9b3cf3a) Allow you to load textures on demand, both ordinary textures and tcmask textures.There is really no reason now to list tcmask textures in the wrf files at all. You can still put a texture in the wrf to override the usual texture loaded with a model (necessary for campaign and terrain dependent base plates). Closes #2304 |
Per Inge Mathisen <per@...> commented (In Warzone2100/warzone2100@f4192aa) Remove some now unnecessary texture references to stress lazy texture loading. See #2304 for more info. |
Per Inge Mathisen <per@...> commented In Warzone2100/warzone2100@8d41118:
|
Per Inge Mathisen <per@...> commented In Warzone2100/warzone2100@9b3cf3a:
|
Per Inge Mathisen <per@...> commented In Warzone2100/warzone2100@f4192aa:
|
Per Inge Mathisen commented Add proper filenames to textures for models that are missing this. Required for lazy texture loading, see #2304 |
Per Inge Mathisen commented Allow you to load textures on demand, both ordinary textures and tcmask textures.There is really no reason now to list tcmask textures in the wrf files at all. You can still put a texture in the wrf to override the usual texture loaded with a model (necessary for campaign and terrain dependent base plates). Closes #2304 |
Per Inge Mathisen commented Remove some now unnecessary texture references to stress lazy texture loading. See #2304 for more info. |
keyword_wrf_textures_tcmask
resolution_fixed
type_patch (an actual patch, not a request for one)
| by PerI got really fed up modifying all those pesky wrf files whenever I needed to test something in the model world. So I wrote this patch that allows you to load textures on demand, both ordinary textures and tcmask textures. With this patch, there is really no reason to list tcmask textures in the wrf files at all. You can still put a texture in the wrf to override the usual texture loaded with a model (necessary for campaign and terrain dependent base plates).
Issue migrated from trac:2304 at 2022-04-16 06:46:10 -0700
The text was updated successfully, but these errors were encountered: