Texture performance increase?

Texture performance increase?

Discuss Lua based Spring scripts (LuaUI widgets, mission scripts, gaia scripts, mod-rules scripts, scripted keybindings, etc...)

Moderator: Moderators

Locked
User avatar
Tribulex
A.N.T.S. Developer
Posts: 1894
Joined: 26 Sep 2009, 21:26

Texture performance increase?

Post by Tribulex »

when i call "gl.texture" is that reloading the texture from the file every time? Can I keep a texture loaded into ram if this is the case?
User avatar
zwzsg
Kernel Panic Co-Developer
Posts: 7052
Joined: 16 Nov 2004, 13:08

Re: Texture performance increase?

Post by zwzsg »

From experiments, I found the first call to gl.Texture takes long, the subsquents not, so I guess the texture is loaded the first time you use gl.Texture on it, and then it stays loaded.
User avatar
Tribulex
A.N.T.S. Developer
Posts: 1894
Joined: 26 Sep 2009, 21:26

Re: Texture performance increase?

Post by Tribulex »

thanks this thread is over lock/delete
Locked

Return to “Lua Scripts”