Preloading textures

Everything about mods can be found here.

Moderator: Morax

Preloading textures

Postby Luxor144 » 15 Feb 2017, 23:44

A simple question (hopefully with a simple answer):
Is there any way to preload specific textures while the game loads?
My mod has a few massive textures which are used for effects (explosions and such). When these effects are called for the first time in the match, as in something getting blown up, it causes the game to freeze for a few seconds while the texture is loaded. Not a big problem, but enough to be annoying.
So..yeah, any way to fix this?
User avatar
Luxor144
Crusader
 
Posts: 11
Joined: 09 Sep 2013, 08:03
Has liked: 0 time
Been liked: 1 time

Re: Preloading textures

Postby Exotic_Retard » 16 Feb 2017, 00:07

im not quite sure, you could call it via script to create an entity with the relevant emitter at the start of the game and have it be invisible for everyone.

but really this is a workaround to a problem that shouldnt exist. why are your textures causing such a slowdown in the first place? are they like 4k each or something?
are you sure its just that and not some laggy lua function instead?
User avatar
Exotic_Retard
Contributor
 
Posts: 1470
Joined: 21 Mar 2013, 22:51
Has liked: 557 times
Been liked: 626 times
FAF User Name: Exotic_Retard

Re: Preloading textures

Postby Luxor144 » 16 Feb 2017, 02:34

Yeah, I'm pretty sure. It's a 18.4 MB texture, so...yeah.

I had similar idea about creating some emitter at the start of the match to get the texture loading out of the way before anything important starts. Still, I'd prefer that to happen during the loading screen.
User avatar
Luxor144
Crusader
 
Posts: 11
Joined: 09 Sep 2013, 08:03
Has liked: 0 time
Been liked: 1 time


Return to Mods & Tools

Who is online

Users browsing this forum: No registered users and 1 guest