summaryrefslogtreecommitdiff
path: root/indra/newview/llvoavatar.cpp
AgeCommit message (Collapse)Author
2011-02-16mergeNyx (Neal Orman)
2011-02-16Fix for SH-816prep
2011-02-11SH-912 Fix for avatar impostors glitching out at weird angles.Dave Parks
2011-02-11re-applying render cost changes for experimentationsNyx (Neal Orman)
2011-02-10Automated merge up from viewer-development into mesh-developmentLoren Shih
2011-02-07SH-930 FIX revert ARC algorithm for merge to viewer-developmentNyx (Neal Orman)
Reverting incomplete changes to ARC so that we don't change RC when we merge down.
2011-02-05Introduces a LLThreadLocalData class that can beAleric Inglewood
accessed through the static LLThread::tldata(). Currently this object contains two (public) thread-local objects: a LLAPRRootPool and a LLVolatileAPRPool. The first is the general memory pool used by this thread (and this thread alone), while the second is intended for short lived memory allocations (needed for APR). The advantages of not mixing those two is that the latter is used most frequently, and as a result of it's nature can be destroyed and reconstructed on a "regular" basis. This patch adds LLAPRPool (completely replacing the old one), which is a wrapper around apr_pool_t* and has complete thread-safity checking. Whenever an apr call requires memory for some resource, a memory pool in the form of an LLAPRPool object can be created with the same life-time as this resource; assuring clean up of the memory no sooner, but also not much later than the life-time of the resource that needs the memory. Many, many function calls and constructors had the pool parameter simply removed (it is no longer the concern of the developer, if you don't write code that actually does an libapr call then you are no longer bothered with memory pools at all). However, I kept the notion of short-lived and long-lived allocations alive (see my remark in the jira here: https://jira.secondlife.com/browse/STORM-864?focusedCommentId=235356&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-235356 which requires that the LLAPRFile API needs to allow the user to specify how long they think a file will stay open. By choosing 'short_lived' as default for the constructor that immediately opens a file, the number of instances where this needs to be specified is drastically reduced however (obviously, any automatic LLAPRFile is short lived). *** Addressed Boroondas remarks in https://codereview.secondlife.com/r/99/ regarding (doxygen) comments. This patch effectively only changes comments. Includes some 'merge' stuff that ended up in llvocache.cpp (while starting as a bug fix, now only resulting in a cleanup). *** Added comment 'The use of apr_pool_t is OK here'. Added this comment on every line where apr_pool_t is correctly being used. This should make it easier to spot (future) errors where someone started to use apr_pool_t; you can just grep all sources for 'apr_pool_t' and immediately see where it's being used while LLAPRPool should have been used. Note that merging this patch is very easy: If there are no other uses of apr_pool_t in the code (one grep) and it compiles, then it will work. *** Second Merge (needed to remove 'delete mCreationMutex' from LLImageDecodeThread::~LLImageDecodeThread). *** Added back #include <apr_pools.h>. Apparently that is needed on libapr version 1.2.8., the version used by Linden Lab, for calls to apr_queue_*. This is a bug in libapr (we also include <apr_queue.h>, that is fixed in (at least) 1.3.7. Note that 1.2.8 is VERY old. Even 1.3.x is old. *** License fixes (GPL -> LGPL). And typo in comments. Addresses merov's comments on the review board. *** Added Merov's compile fixes for windows.
2011-01-28SH-808 making sure the 10m vs. 64m scale limit switch happens for both the ↵leyla_linden
spinner and the manipulation tools etc.
2011-01-27Renamed functionprep linden
2011-01-27Renamed functionprep linden
2011-01-27Optimization so that updateRiggedAttachments is not called every frame - ↵prep linden
still a WIP.
2011-01-27Rebuild attached rigs during attachObjectprep linden
2011-01-14mergeprep linden
2011-01-14voice dot is positioned consistentlyprep linden
2011-01-13merge up to latest viewer-developmentOz Linden
2011-01-13Automated merge up from viewer-developmentLoren Shih
2011-01-12Fix for Sh-780 and tweak for nametag height (Sh-638).prep linden
2011-01-10Fix for SH-638prep
2011-01-05Fix for SH-579prep
2010-12-30STORM-955: VWR-24312: Massively duplicated objectsAleric Inglewood
Turns out that most of my SNOW-800 patch was included in Viewer 2 (albeit without crediting me). However, not everything was used and some more cleaning up was possible. After this patch, and when compiling with optimization, there are no duplicates left anymore that shouldn't be there in the first place. Apart from the debug stream iostream guard variable, there are several static variables with the same name (r, r1, r2, etc) but that indeed actually different symbol objects. Then there are a few constant POD arrays that are duplicated a hand full of times because they are accessed with a variable index (so optimizing them away is not possible). I left them like that (although defining those as extern as well would have been more consistent and not slower; in fact it would be faster theoretically because those arrays could share the same cache page then).
2010-12-22removing some very old debug spamAndrew Meadows
2010-12-15correct merge error in llvoavatarOz Linden
2010-12-14Automated merge with file:///Users/oz/Work/viewer-developmentOz Linden
2010-12-13Automated merge up from viewer-developmentLoren Shih
2010-12-08merge with viewer-devRichard Linden
2010-12-07Automated merge up from viewer-developmentLoren Shih
2010-12-07Bug fix. Joint ids were not being reset. The issue was noticeable when you ↵prep linden
attached and then reattached a rigged mesh with offsets. The reattached mesh would not be offset correctly.
2010-12-06Fix for SH-542prep
2010-12-04merge up to viewer-developmentOz Linden
2010-12-03Fix for SH-479prep linden
2010-12-01Automated merge up from viewer-developmentLoren Shih
2010-11-30STORM-584 FIXED Chat font colors for "Me" and "Others" used for the bubble ↵Seth ProductEngine
chat text. Bubble chat color picker now sets the background color for the name tag and bubble chat. Label for the color picker changed to "Bubble chat background" Removed unused "BackgroundChatColor" setting, using "NameTagBackground" instead.
2010-11-21Remove dependency on ll_align_malloc/free from avatar.Dave Parks
2010-11-15mergeRichard Linden
2010-11-12Merge latest from lindenlab/viewer-developmentDave SIMmONs
2010-11-10cleanupprep
2010-11-10Bug fix for an avatar that would exhibit floating if pelvis was offsetprep
Bug fix for attach/detach so that it will recalculate certain avatar settings based upon bone positions.
2010-11-05Merge latest from lindenlab/viewer-developmentDave SIMmONs
2010-10-28- Pelvis offsets are now preservedprep
- Fix for CTS-261
2010-10-20Automated merge up from viewer-developmentLoren Shih
2010-10-15sync up to viewer-developerTofu Buzzard
2010-10-13Fix for EXP-220 -- Remove voice dot for skylight userMonroe Linden
Reviewed by Richard.
2010-10-13correct licenses (fix problem with license change merge)Oz Linden
2010-10-12Initial work on viewer motion interpolation. Changes include:Dave SIMmONs
* InterpolationTime and InterpolationPhaseOut values in settings.xml to control new object interpolation code. Use zero to revert to old logic * Viewer motion interpolation lasts InterpolationTime and will start to phase out after InterpolationPhaseOut seconds * Changed LLWorld::getMinAllowedZ() to take a world-position as a parameter * Added LLVOAvatarSelf::resetRegionCrossingTimer() * Actually reset LLVOAvatarSelf::mRegionCrossingTimer so we get sensible timing data for region crossings * LLVOAvatarSelf::updateRegion() will update position value due to region changes Code reviewed by Ambroff *
2010-10-10VWR-21967 There's lots of ::renderForSelect() code that we don't need any more.Tofu Linden
VWR-22088 Remove underlying ::renderForSelect() code (render-pipeline)
2010-10-05Reset joint positions after detaching a rigged modelprep linden
2010-09-29MergeLeyla Farazha
2010-09-27mergeDave Parks
2010-09-24Added support for joint offsetsprep linden
2010-09-22SH-188 crash in llvoavatar.cppNyx (Neal Orman)
We were using a NULL pointer after checking it was null due to a logic error. Re-shuffled the logic to ensure we would only dereference pointer after it was known to be non-null Code reviewed by Seraph