Cool VL Viewer forum http://sldev.free.fr/forum/ |
|
Memory Limit stuff http://sldev.free.fr/forum/viewtopic.php?f=6&t=1484 |
Page 1 of 1 |
Author: | Tillie [ 2015-01-04 17:18:04 ] |
Post subject: | Memory Limit stuff |
I know this topic pops up every now and then. But I am still only half happy with all the changes concerning crashes on sims with tons of avatars and stuff and textures. One thing that improved a lot: I don't see any distorted or not-loading meshes/textures anymore after logging back into SL after a crash. That was pretty bad some long time ago, a crash usually meant: no more photos cause all was messed up from then. That is resolved, so this is a really great improvement, yay for that! But still the crashes occur, and before the crash textures start loop loading because the client apparently is unable to keep them all in the memory anymore. The older loop-loading because of textures that never got finished loading seems to be gone, though. So I am still looking for a solution for this. The problem usually occurs during something like fashion shows... models dress up with a zillion prims and textures and as they walk into view range, memory gets bloated more and more until loop-loading and finally a crash, when the small memory marker on the top bar of the client hits its limit. Is there maybe a way to discard the oldest textures or something instead of trying load more than the memory allows, and only load the new ones if there's enough space for them? I mean, models leave the stage and disappear, textures should drop to the bottom of the cache at some time and the client could drop those, finally, to make space for fresh ones? For me as a photographer, all that is important is the model I am focussed on with the camera (and a bit of background), everything to my sides or behind me could derezz, I wouldn't care at all... Just some naive loud thinking. Awaiting heavy bashing, cause of lack of indepth-knowledge and bringing up the same topic over and over. :p |
Author: | Henri Beauchamp [ 2015-01-04 19:09:16 ] | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Post subject: | Re: Memory Limit stuff | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Even though I made it so that the boosting gets suspended when the textures discard bias reaches a certain threshold (i.e. when textures memory gets low), it still causes all the attachment textures of the avatars present before the threshold gets reached to be fully fetched (i.e. the full raw textures get loaded in memory and cache, even if the rendered texture gets resized down to a lower LOD after the threshold is reached): this is for example the case when you TP into a crowded place (all the avatars there get their attachments textures fully fetched). I might change the default for this setting to off in the future, especially since the newest calculations for the "importance to the camera" (which governs the textures LOD) is much better than what it used to be in the past.
|
Author: | Tillie [ 2015-01-04 19:17:06 ] |
Post subject: | Re: Memory Limit stuff |
Yah, I get a warning. But not much I can do. Or should I TP out to a deserted place with low/zero prims, check that the memory usage drops and then TP back? Will check the setting changes you mentioned. |
Author: | Henri Beauchamp [ 2015-01-04 19:27:15 ] | |||||||||
Post subject: | Re: Memory Limit stuff | |||||||||
Your best bet is therefore to relog... The only definitive solution for this memory issue will be 64 bits viewers (when LL will decide to provide support and pre-built libraries for them...). |
Author: | ErikaThorkveld [ 2015-01-05 21:24:05 ] |
Post subject: | Re: Memory Limit stuff |
Are there general rules or useful settings that might help keeping the memory usage low? I tried a few like 'Compress textures', or turning off 'Boost attachments textures' as you suggest, or lowering the number of non-impostor avatars, but they don't seem to help a lot… Not sure why, but there are some places where I used to go without problems, places that are always quite crowded, and now I can rarely stay there for very long: I'm getting memory warnings quite quickly, and I have to go, or I do crash. Since I'm doing photos and my computer can handle it, I was almost always on 'ultra' graphics settings, and I thought it might have been because of that. But I went down to just 'high' (which is the recommended setting, or at least the one I get when pressing the 'Recommended' button), and it didn't bring any noticeable change… So I'm wondering now if I can do anything to prevent the memory from filling up in 10 minutes in places where there are more than a dozen people around… |
Author: | Henri Beauchamp [ 2015-01-05 23:35:28 ] | |||||||||
Post subject: | Re: Memory Limit stuff | |||||||||
You may use the new "RenderAutoMuteMemoryLimit" setting to automatically visually mute avatars using an excessive amount of memory because of insanely badly designed attachments. Alas, that feature is far from perfect and will not free the whole memory associated with these attachments. But at least, it entitles you to spot the problematic avatars and attachments, and you still can de-render the said attachments (after disabling the auto-muting, alas). I'll perhaps try and improve that feature to turn it into an auto-derender-attachments one, but it's not trivial, because of the way attachments are rendered (the "spatial partitions" used by the renderer do not correspond to single attachments). |
Author: | Tillie [ 2015-01-06 08:32:32 ] |
Post subject: | Re: Memory Limit stuff |
RenderAutoMuteMemoryLimit sounds like a super cool feature... trying! But no idea, what is a suggested value for that? Is 32MB too hard or too low? And which value for TextureMemory again? It defaults to 512, and there is a setting of 0 for autodetect... |
Author: | ErikaThorkveld [ 2015-01-06 09:36:15 ] | |||||||||
Post subject: | Re: Memory Limit stuff | |||||||||
Advanced -> Rendering -> Info displays -> Attachment bytes, then look around. With 32MB, I guess you won't derender a lot of people… I tried, the max I could see was 12MB… and it was me. Mesh bodies aren't helping for memory usage, it seems… |
Author: | Henri Beauchamp [ 2015-01-06 10:39:19 ] |
Post subject: | Re: Memory Limit stuff |
The idea of RenderAutoMuteMemoryLimit is to visually mute avatars with excessively badly designed attachments (many "modern" attachments are poorly designed, but some are worth griefing objects...). A 64Mb limit per avatar seems reasonable. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |