How long are complex textures stored in memory?

Post Reply
User avatar
Piezo_
Member
Posts: 219
Joined: Fri Jul 20, 2018 21:36
GitHub: is proprietary I use NotABug
Location: (x,y,z)

How long are complex textures stored in memory?

by Piezo_ » Post

How long are texture combinations stored in memory?

For example, let's say someone's character skin consists of a texture string which combines several colorized and uncolorized layers, with thousands of possibilities.

Is every result stored in memory indefinitely once it is rendered, or does it remain only as long as it is used, or is it not stored at all, meaning the engine calculates it every time it's drawn?

Also, is it only the client that stores this, or would the server have a copy, too?
while (true) { suffer(); }

User avatar
Pyrollo
Developer
Posts: 385
Joined: Mon Jan 08, 2018 15:14
GitHub: pyrollo
In-game: Naj
Location: Paris

Re: How long are complex textures stored in memory?

by Pyrollo » Post

That's an excellent question. It could be interesting to know for all the signs libs that potentially generates loads of textures.
[ Display Modpack ] - [ Digiterms ] - [ Crater MG ] - [ LATE ]

User avatar
Piezo_
Member
Posts: 219
Joined: Fri Jul 20, 2018 21:36
GitHub: is proprietary I use NotABug
Location: (x,y,z)

Re: How long are complex textures stored in memory?

by Piezo_ » Post

Pyrollo wrote:That's an excellent question. It could be interesting to know for all the signs libs that potentially generates loads of textures.
Oh, crap. I was just thinking about character_creator and banners.

Signs are a whole new level.
while (true) { suffer(); }

wziard
Member
Posts: 127
Joined: Mon Oct 29, 2018 19:12

Re: How long are complex textures stored in memory?

by wziard » Post

Yes, I'm very interested in this question as well. As soon as I have time I'll try to find out from the engine source code.
On my server a few children are playing using a raspberry pi and texture memory is the main bottleneck.

User avatar
GreenXenith
Member
Posts: 1356
Joined: Wed Oct 28, 2015 01:26
GitHub: GreenXenith
Location: UTC-8:00
Contact:

Re: How long are complex textures stored in memory?

by GreenXenith » Post

Generated textures are stored until the server shuts down/restarts.
YouTube | Mods | Patreon | Minetest Discord @greenxenith

You should not be able to read this message.

User avatar
rubenwardy
Moderator
Posts: 6978
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

Re: How long are complex textures stored in memory?

by rubenwardy » Post

Generated textures are stored on the client only, so are stored until the client disconnects. The only way a server restart affects this is because a server restart will disconnect all clients

This is something I'd like to see fixed, ie: more intelligent caching and garbage collection
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

User avatar
Piezo_
Member
Posts: 219
Joined: Fri Jul 20, 2018 21:36
GitHub: is proprietary I use NotABug
Location: (x,y,z)

Re: How long are complex textures stored in memory?

by Piezo_ » Post

rubenwardy wrote:Generated textures are stored on the client only, so are stored until the client disconnects. The only way a server restart affects this is because a server restart will disconnect all clients

This is something I'd like to see fixed, ie: more intelligent caching and garbage collection
If they're only allocated clientside, that relieves my primary concern (memory usage on my server), but it's definitely still an issue.
while (true) { suffer(); }

Post Reply

Who is online

Users browsing this forum: No registered users and 26 guests