How long are complex textures stored in memory?

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

How long are complex textures stored in memory?

by Piezo_ » Fri Feb 22, 2019 08:02

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
Member
 
Posts: 325
Joined: Mon Jan 08, 2018 15:14
Location: Paris
GitHub: pyrollo
In-game: Naj

Re: How long are complex textures stored in memory?

by Pyrollo » Fri Feb 22, 2019 09:44

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
Location: (x,y,z)
GitHub: is proprietary I use NotABug
In-game: Piezo_ or TheRealPiezo_

Re: How long are complex textures stored in memory?

by Piezo_ » Fri Feb 22, 2019 10:06

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: 126
Joined: Mon Oct 29, 2018 19:12

Re: How long are complex textures stored in memory?

by wziard » Fri Feb 22, 2019 10:17

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
GreenDimond
Member
 
Posts: 1272
Joined: Wed Oct 28, 2015 01:26
Location: SCP-3008
GitHub: GreenXenith
IRC: GreenDimond
In-game: GreenDimond

Re: How long are complex textures stored in memory?

by GreenDimond » Fri Feb 22, 2019 17:47

Generated textures are stored until the server shuts down/restarts.
Y▹uTube | Mods | Patre●n | Twitter | Minetest Discord | GreenDimond#3232

Hey, you. You're finally awake.
You were trying to view their profile, right? Found the rest of their signature, same as us, and that guest over there.
 

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

Re: How long are complex textures stored in memory?

by rubenwardy » Fri Feb 22, 2019 17:53

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
 

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

Re: How long are complex textures stored in memory?

by Piezo_ » Fri Feb 22, 2019 18:28

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(); }
 


Return to General Discussion



Who is online

Users browsing this forum: No registered users and 13 guests