[sldev] [VWR] idle_mem_check()
Robin Cornelius
robin.cornelius at gmail.com
Wed Jul 23 05:32:37 PDT 2008
Hey Everyone,
Whist looking through the idle loop i came across the idle_mem_check()
function. What this does is every frame allocate 10MB of memory in 1MB
chunks then frees them again, just to check it can.
This seems like a generally bad idea and if you are already hitting swap
space its going to contribute to a swap storm and lets face it, if you
can't allocate 10MB your pretty screwed anyway, something going to crash
or be terminated *very* soon.
I would also imagine this can lead to memory fragmentation (although i
am blissfully unaware how well OS's cope with this these days).
I did get a small increase in FPS by removing it. My viewer was at
5.9-6.0 FPS in a sim with no avatars in or out (or moving) after
removing the idle_mem_check() i got 7.0 FPS in exactly the same location.
I vote its removed but wanted to see if there are any comments or good
reasons why it needs to still be there.
Robin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : http://lists.secondlife.com/pipermail/sldev/attachments/20080723/e9515dbd/signature.pgp
More information about the SLDev
mailing list