Cool VL Viewer forum http://sldev.free.fr/forum/ |
|
BOOL http://sldev.free.fr/forum/viewtopic.php?f=5&t=1326 |
Page 1 of 1 |
Author: | Tillie [ 2013-09-29 07:17:08 ] | |||||||||
Post subject: | BOOL | |||||||||
Oh wow, you find the most weird things. So with 106k inventory, does it save me around 100MB then? Btw. about memory: as suggested I raised the video memory usage to 512MB. This indeed removed the loop-reload issues completely for, but: apparently for each MB video memory SL seems to use the same amount of main memory, too. So in crowded areas I don't get a loop-reloading anymore but an out-of-memory crash. So I have to find a good value for display memory usuage between loop-reloading and crash. >.< |
Author: | Henri Beauchamp [ 2013-09-29 09:54:34 ] | |||||||||||||||||||||||||||
Post subject: | Re: BOOL | |||||||||||||||||||||||||||
There were even worst things in the original code for the v1 viewers (that Lindens finally learned to take into account in their newer code), such as saved settings variables (AKA debug settings, which are in fact used for far many more purposes than just debugging), that are referenced via strings (meaning that to retrieve the value of a simple boolean from a setting, you must first compare the name of its variable, character per character, with the names of all the variables) and that only "recently" (IIRC, back in Snowglobe days) had their value cached (LLCachedControl) for faster access.
Your mileage may vary also depending on the memory allocator in use (the figure I gave was for Linux with jemalloc as the memory allocator): the gain will be different if the memory allocator reserves space on a byte-aligned scheme, like under 32bits Linux without jemalloc or under Windows without tcmalloc (in which case each C++ object will use exactly the amount of memory needed by its member variables) when compared to 16-bytes aligned allocations (jemalloc, tcmalloc, MacOS-X, where the space allocated to each object is rounded up to the nearest 16 multiplier).
|
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |