Commit Graph

1462 Commits (bd008a170898e69beeb8bc0481b4bfd94de86c55)

Author SHA1 Message Date
Nat Goodspeed 099e3b4166 Automated merge with ssh://bitbucket.org/lindenlab/viewer-release 2016-09-16 11:04:12 -04:00
Nat Goodspeed d2c3c2f9fe MAINT-5232: Normalize LLSingleton subclasses.
A shocking number of LLSingleton subclasses had public constructors -- and in
several instances, were being explicitly instantiated independently of the
LLSingleton machinery. This breaks the new LLSingleton dependency-tracking
machinery. It seems only fair that if you say you want an LLSingleton, there
should only be ONE INSTANCE!

Introduce LLSINGLETON() and LLSINGLETON_EMPTY_CTOR() macros. These handle the
friend class LLSingleton<whatevah>;
and explicitly declare a private nullary constructor.

To try to enforce the LLSINGLETON() convention, introduce a new pure virtual
LLSingleton method you_must_use_LLSINGLETON_macro() which is, as you might
suspect, defined by the macro. If you declare an LLSingleton subclass without
using LLSINGLETON() or LLSINGLETON_EMPTY_CTOR() in the class body, you can't
instantiate the subclass for lack of a you_must_use_LLSINGLETON_macro()
implementation -- which will hopefully remind the coder.

Trawl through ALL LLSingleton subclass definitions, sprinkling in
LLSINGLETON() or LLSINGLETON_EMPTY_CTOR() as appropriate. Remove all explicit
constructor declarations, public or private, along with relevant 'friend class
LLSingleton<myself>' declarations. Where destructors are declared, move them
into private section as well. Where the constructor was inline but nontrivial,
move out of class body.

Fix several LLSingleton abuses revealed by making ctors/dtors private:

LLGlobalEconomy was both an LLSingleton and the base class for
LLRegionEconomy, a non-LLSingleton. (Therefore every LLRegionEconomy instance
contained another instance of the LLGlobalEconomy "singleton.") Extract
LLBaseEconomy; LLGlobalEconomy is now a trivial subclass of that.
LLRegionEconomy, as you might suspect, now derives from LLBaseEconomy.

LLToolGrab, an LLSingleton, was also explicitly instantiated by
LLToolCompGun's constructor. Extract LLToolGrabBase, explicitly instantiated,
with trivial subclass LLToolGrab, the LLSingleton instance.

(WARNING: LLToolGrabBase methods have an unnerving tendency to go after
LLToolGrab::getInstance(). I DO NOT KNOW what should be the relationship
between the instance in LLToolCompGun and the LLToolGrab singleton instance.)

LLGridManager declared a variant constructor accepting (const std::string&),
with the comment:
// initialize with an explicity grid file for testing.
As there is no evidence of this being called from anywhere, delete it.

LLChicletBar's constructor accepted an optional (const LLSD&). As the LLSD
parameter wasn't used, and as there is no evidence of it being passed from
anywhere, delete the parameter.

LLViewerWindow::shutdownViews() was checking LLNavigationBar::
instanceExists(), then deleting its getInstance() pointer -- leaving a
dangling LLSingleton instance pointer, a land mine if any subsequent code
should attempt to reference it. Use deleteSingleton() instead.

~LLAppViewer() was calling LLViewerEventRecorder::instance() and then
explicitly calling ~LLViewerEventRecorder() on that instance -- leaving the
LLSingleton instance pointer pointing to an allocated-but-destroyed instance.
Use deleteSingleton() instead.
2016-09-15 20:18:12 -04:00
AndreyL ProductEngine c2b6620572 Merged in lindenlab/viewer-release 2016-09-15 23:21:15 +03:00
Rider Linden 51236b7c9c Merge 2016-09-14 09:55:18 -07:00
Nat Goodspeed 959edebeca MAINT-5232: Add LLSingletonBase::cleanupAll() and deleteAll() calls
near the end of LLAppViewer::cleanup() so every LLSingleton class that hasn't
already been explicitly cleaned up gets a chance to perform its own cleanup.
2016-08-31 16:20:10 -04:00
Nat Goodspeed 3e1589709f MAINT-5232: LLMetricPerformanceTesterBasic::cleanClass->cleanupClass
for consistency with everything else, so we can use SUBSYSTEM_CLEANUP() macro
to call it.
2016-08-31 14:46:03 -04:00
Nat Goodspeed 57ecedb469 MAINT-5232: Change getIfExists() call to instanceExists().
LLSingleton::getIfExists() has been eliminated. The only remaining way to
detect whether a given LLSingleton has been instantiated is to call
instanceExists(). But the relevant cleanup code should be refactored to
cleanupSingleton() anyway, which would make this specific call moot.
2016-08-30 14:12:52 -04:00
Nat Goodspeed c92eb7e591 Automated merge with ssh://bitbucket.org/lindenlab/viewer-release 2016-08-30 11:36:06 -04:00
Nat Goodspeed 6b24122857 Automated merge with ssh://bitbucket.org/lindenlab/viewer-vlc 2016-08-29 17:06:12 -04:00
Nat Goodspeed 4c41b1d8ac MAINT-5011: Add top-level exception handlers in LLAppViewer::frame(). 2016-08-26 15:56:47 -04:00
AndreyL ProductEngine 6c280f9d2b MAINT-6662 Don't show release notes on first login 2016-08-20 14:36:04 +03:00
AndreyL ProductEngine 3d9c39c77c MAINT-6663 [Win LibVLC] test video buttons still appearing in search 2016-08-20 12:53:03 +03:00
Glenn Glazer c8c143e774 SL-323: first pass at ripping out old updater 2016-08-18 13:05:30 -07:00
Nat Goodspeed e72bdc9bc5 Automated merge with ssh://bitbucket.org/lindenlab/viewer-release 2016-08-17 11:41:12 -04:00
Nat Goodspeed 5e9d2f57c8 MAINT-5011: Use LLTHROW() instead of plain BOOST_THROW_EXCEPTION().
A level of preprocessor indirection lets us later change the implementation if
desired.
2016-08-17 11:36:24 -04:00
pavelkproductengine 05e77c5f26 Merge VOB with 4.0.8-release 2016-08-16 20:40:57 +03:00
Brad Payne (Vir Linden) 57da9bcd1b merge from viewer-release 2016-08-15 09:52:06 -04:00
Oz Linden 6ff420d705 merge changes for 4.0.7-release 2016-08-11 15:36:09 -04:00
andreykproductengine 5b94ed9f4e MAINT-6634 fixed string 2016-08-15 20:01:56 +03:00
andreykproductengine 5297782193 MAINT-6634 "My graphics driver is out of date" was listed 3 times in Alerts 2016-08-15 17:05:23 +03:00
Nat Goodspeed 9c49a6c91d MAINT-5011: Introduce LLException base class for viewer exceptions.
This also introduces LLContinueError for exceptions which should interrupt
some part of viewer processing (e.g. the current coroutine) but should attempt
to let the viewer session proceed.

Derive all existing viewer exception classes from LLException rather than from
std::runtime_error or std::logic_error.

Use BOOST_THROW_EXCEPTION() rather than plain 'throw' to enrich the thrown
exception with source file, line number and containing function.
2016-07-19 16:25:25 -04:00
andreykproductengine ee51eee627 MAINT-6259 rigged items' LOD should be size dependent, not only avatar dependent 2016-07-19 19:33:50 +03:00
Nat Goodspeed 2f003fd5a9 MAINT-5011: Throw an actual exception in Force Software Exception.
http://en.cppreference.com/w/cpp/language/throw says of the plain throw syntax:

"This form is only allowed when an exception is presently being handled (it
calls std::terminate if used otherwise)."

On advice from Oz, replace plain 'throw;' with throwing a std::runtime_error.
2016-07-13 14:58:12 -04:00
pavelkproductengine 070116f212 MAINT-6493 SL Viewer does not respect the Windows 10 display setting size slider 2016-07-13 20:28:29 +03:00
andreykproductengine b652774324 Backed out changeset: a1a0a055e892 2016-07-18 17:28:02 +03:00
andreykproductengine 60c0c0e0e4 MAINT-6259 rigged items' LOD should be size dependent, not only avatar dependent 2016-07-04 19:55:54 +03:00
Nat Goodspeed 464a0df4c1 DRTVWR-418: Unify control flow through LLAppViewer across platforms.
The LLApp API used to consist of init(), mainLoop(), cleanup() methods. This
makes sense -- but on Mac that structure was being subverted. The method
called mainLoop() was in fact being called once per frame. There was
initialization code in the method, which (on Mac) needed to be skipped with an
already-initialized bool. There was a 'while' loop which (on Mac) needed to be
turned into an 'if' instead so the method would return after every frame.

Rename LLApp::mainLoop() to frame(). Propagate through subclasses LLAppViewer
and LLCrashLogger. Document the fact that frame() returns true to mean "done."
(This was always the case, but had to be inferred from the code.)

Rename the Mac Objective-C function mainLoop to oneFrame. Rename the C++ free
function it calls from runMainLoop() to pumpMainLoop(). Add comments to
llappdelegate-objc.mm explaining (inferred) control flow.

Change the Linux viewer main() and the Windows viewer WINMAIN() from a single
LLAppViewer::mainLoop() call to repeatedly call frame() until it returns true.

Move initialization code from the top of LLAppViewer::frame() to the init()
method, where it more properly belongs. Remove corresponding
mMainLoopInitialized flag (and all references) from LLAppViewer.

Remove 'while (! LLApp::isExiting())' (or on Mac, 'if (! LLApp::isExiting())')
from LLAppViewer::frame() -- thus unindenting the whole body of the 'while'
and causing many lines of apparent change. (Apologies to reviewers.)

There are four LLApp states: APP_STATUS_RUNNING, APP_STATUS_QUITTING,
APP_STATUS_STOPPED and APP_STATUS_ERROR. Change LLAppViewer::frame() return
value from (isExiting()) (QUITTING or ERROR) to (! isRunning()). I do not know
under what circumstances the state might transition to STOPPED during a
frame() call, but I'm quite sure that if it does, we don't want to call
frame() again. We only want a subsequent call if the state is RUNNING.

Also rename mainLoop() method in LLCrashLogger subclasses
LLCrashLoggerWindows, LLCrashLoggerMac, LLCrashLoggerLinux. Of course it's
completely up to the frame() method whether to yield control; none of those in
fact do. Honor protocol by returning true (frame() is done), even though each
one's main() caller ignores the return value.

In fact LLCrashLoggerWindows::mainLoop() wasn't using the return protocol
correctly anyway, returning wParam or 0 or 1 -- possibly because the return
protocol was never explicitly documented. It should always return true: "I'm
done, don't call me again."
2016-06-30 16:51:50 -04:00
Brad Payne (Vir Linden) 93bafda56b MAINT-6366 - diagnostics related to animation asset downloads 2016-06-13 09:15:42 -04:00
pavelkproductengine 9f789ddfba MAINT-5194 Visual Outfit browser
Made refactoring of LLFloaterOutfitSnapshot and LLFloaterSnapshot
2016-06-02 20:23:46 +03:00
Callum Prentice 08b8e053f4 Fix typo in platform test for CEF version 2016-05-26 13:50:24 -07:00
callum_linden 70a38880fa Put back QuickTime plugin code for OS X only (untested - moving code to OS X dev) 2016-05-26 12:50:54 -07:00
AndreyL ProductEngine 0318e36167 MAINT-6419 Simplified the version check + buildfix 2016-05-24 21:59:58 +03:00
pavelkproductengine 4d9b3cd725 Merge VOB with release 4.0.6 2016-05-24 18:37:20 +03:00
callum_linden 05fcb7c812 Automated merge with tip of viewer-release 2016-05-23 16:50:56 -07:00
Brad Payne (Vir Linden) f47ceb47bb merged jelly-doll viewer-release into bento 2016-05-21 08:15:28 -04:00
AndreyL ProductEngine 357f6d04ed MAINT-6419 Show the release notes when first starting a new viewer 2016-05-20 01:45:12 +03:00
callum_linden ed73eae302 Added support for arbitrary URLs and cleaned up code 2016-05-10 13:07:34 -07:00
AndreyL ProductEngine c50f96b492 Merged in lindenlab/viewer-lynx 2016-05-20 02:06:08 +03:00
andreykproductengine b756b47d08 MAINT-6383 SLT timestamp in "About second life" floater 2016-05-13 19:42:27 +03:00
Mnikolenko Productengine b1243c55e5 Merged in oz_linden/maint-5974 2016-05-10 16:09:25 +03:00
callum_linden 337ad8a76f Add version info 2016-05-09 18:40:01 -07:00
Brad Payne (Vir Linden) d69c01ba80 merge 2016-05-06 16:29:34 -04:00
Oz Linden 950c41d184 merge 4.0.4-release and MAINT-5974 2016-05-06 10:28:42 -04:00
pavelkproductengine 4125bebce7 MAINT-6226 Incorporate a customized Snapshot feature to Outfit Browser flow
Initial version, further refactoring pending
2016-04-29 20:28:11 +03:00
Oz Linden ddd476c90c MAINT-6322 fix merge error that prevented crash dumps from being located for upload (and add better logging) 2016-04-20 11:52:00 -04:00
Oz Linden ecdb190d70 MAINT-6322 fix merge error that prevented crash dumps from being located for upload (and add better logging) 2016-04-20 11:52:00 -04:00
Oz Linden 9be58e915a merge with 4.0.3-release 2016-04-04 15:53:09 -04:00
Brad Payne (Vir Linden) caf4f49437 merge 2016-04-01 08:35:38 -04:00
Brad Payne (Vir Linden) 2afde26d93 merge 2016-03-21 11:00:22 -04:00
Rider Linden b8c1976460 Merge 2016-03-17 13:14:21 -07:00
Oz Linden 31f3db0291 merge changes for DRTVWR-417 2016-03-16 13:08:06 -04:00
Oz Linden 5822fb00b6 merge DRTVWR-398 build cleanup fixes 2016-03-07 12:41:11 -05:00
Oz Linden f3b1efae5d put the KDU, Fmod*, and CEF versions back in the About info 2016-02-07 10:26:34 -08:00
Oz Linden b46627ffc4 add build configuration to the About box if it is not Release
remove some superfluous other information from About
2016-02-04 23:32:42 -05:00
Oz Linden bc22e58743 merge changes for 4.0.1-release 2016-01-15 16:55:04 -05:00
Brad Payne (Vir Linden) 3612d7d14b merge 2016-01-15 16:42:39 -05:00
Rider Linden e7eaa94dfa Merge VR 2016-01-15 13:36:38 -08:00
andreykproductengine 5a6fce5b62 MAINT-489 various cache and log files not being deleted 2016-01-04 19:10:51 +02:00
AndreyL ProductEngine 60dfd55eda Merge downstream, version 4.0.1 2015-12-22 11:07:18 +02:00
Rider Linden 909e409743 Merge 2015-12-18 14:10:02 -08:00
Brad Payne (Vir Linden) 3f81bb15b3 merge 2015-12-18 13:55:41 -05:00
Rider Linden 6dd80980cf Merge 2015-12-18 10:16:26 -08:00
rider f4b6a89ab0 Throttle consecutive connect attempts. 2015-12-15 11:13:47 -08:00
Oz Linden 317644f5d5 MAINT-5860: remove timestamp from the about box (version id is enough) 2015-11-13 17:19:28 -05:00
Oz Linden 9848fc4253 merge changes for 4.0.1-release 2016-01-15 17:01:16 -05:00
Oz Linden 4b7ff25eba merge changes for 4.0.0-release 2015-12-18 10:44:42 -05:00
Rider Linden 059925eafb Added code to initiate controlled shutdown of plugins with timeouts for misbeahving plugin. 2015-11-10 13:45:30 -08:00
Oz Linden c8726aba30 remove execute permission from many files that should not have it 2015-11-10 09:48:56 -05:00
rider bd817f6f42 MAINT-5754: Basic keyboard functionality on the Mac. Still incomplete 2015-11-06 14:12:30 -08:00
Nat Goodspeed 11c428759e Automated merge with ssh://bitbucket.org/lindenlab/viewer-release 2015-11-02 14:09:43 -05:00
Aura Linden 07496b015b Pulled merge from bento prime. 2015-10-27 15:33:21 -07:00
Aura Linden 97374a5362 Fixes SL-202 joint offset and skin weight import. Race condition still exists. 2015-10-27 15:15:34 -07:00
ruslantproductengine 501033f521 MAINT-3491 FIXED If ALM is enabled while in wireframe mode, disabling wireframe mode results in a black screen. 2015-10-27 18:06:36 +02:00
Brad Payne (Vir Linden) d365aa10f1 SL-234 WIP - moved LLSkinningUtil funcs to separate class/files. Remap weights where needed. Warn that related debug settings require restart to take effect. 2015-10-21 16:47:03 -04:00
callum_linden 6599e10d00 Merge with tip of viewer-release 2015-10-20 16:39:00 -07:00
Rider Linden 825106f0ee MAINT-5732: Behavior #2. Be sure that the internet stream is stopped before destroying the streaming audio interface. Otherwise FMODEX blocks on close. 2015-10-19 16:08:38 -07:00
Rider Linden 53b947e039 Merge from viewer release. 2015-10-19 12:03:08 -07:00
Oz Linden 69ff937e47 merge changes for 3.8.5-release 2015-10-13 08:43:03 -04:00
Rider Linden cb7f84a470 MAINT-5687: Remove old webkit from the make files and the repo. Ensure that it is no longer meaningfully referenced. 2015-10-02 11:14:28 -07:00
Rider Linden 2a37a8b1cc Add cleanup to LLCore prevent occasional crash on exit. 2015-09-21 17:01:26 -07:00
Rider Linden 1eed334e7f MAINT-5629: Remove llares and llareslistener. Login now does not attempt to do a lookup on the server names and rewrite the URL.
MAINT-5614: Bad password status correctly detected.
2015-09-21 10:59:58 -07:00
Rider Linden 907efc9cc9 MAINT-5507: Remove llcurl, move constant values and untilities to llcorehttp lib 2015-09-15 17:01:26 -07:00
Rider Linden 196caf21a8 MAINT-5507: Removal of sdrpc client/server
MAINT-5507: removal of LLCurl::Easy, LLCurl::Multi LLCurl::Responder
2015-09-14 16:10:20 -07:00
Rider Linden 97236a42ca MAINT-5507: Remove HTTPClient and related cruft. 2015-09-14 11:15:23 -07:00
Rider Linden 96e343b49b MAINT-5575: Convert the Experience cache into a coro based singleton.
--HG--
branch : MAINT-5575
2015-09-01 16:13:52 -07:00
callum_linden 1db2c7276d Merge with viewer-release 2015-08-31 11:17:28 -07:00
Oz Linden 2efe91ef64 merge changes for 3.8.3-release 2015-08-18 15:05:01 -04:00
Oz Linden c2f9c5ac81 merge changes for 3.8.0-release 2015-07-09 12:30:57 -04:00
andreykproductengine 79ffc6569b Merge from viewer-relese and become version 3.8.1 2015-07-01 14:40:05 +03:00
callum_linden 8eb7e9d952 Merge with head of viewer-release 2015-06-30 11:51:58 -07:00
Nat Goodspeed 77da469d6f Automated merge with ssh://bitbucket.org/lindenlab/viewer-release 2015-06-30 14:50:37 -04:00
callum_linden f7908a5029 Point to new version of LLCefLib with support for second life URLs, version string, navigation commands 2015-06-30 00:07:58 +01:00
andreykproductengine 11b48840c7 MAINT-5250 Viewer should handle large number of calling cards better 2015-06-16 20:18:27 +03:00
Oz Linden 95fc2d48ec merge changes for 3.7.30-release 2015-06-15 15:53:45 -04:00
Oz Linden 1fce3cc89e corrections needed for new tools 2015-06-08 17:35:18 -04:00
Oz Linden 949942c730 merge changes for 3.7.29-release 2015-06-08 16:33:02 -04:00
simon 3720ed0613 Merge downstream code 2015-06-09 17:01:50 -07:00
andreykproductengine 2684c53690 Merge from viewer-relese and become version 3.8.1 2015-07-02 14:50:23 +03:00
Nat Goodspeed 107b9bcb70 MAINT-5232: Introduce SUBSYSTEM_CLEANUP() macro
and use it for existing LLSomeClass::cleanupClass() calls.
This logs the fact of making the call, as well as making it.
2015-05-20 10:56:09 -04:00
AndreyL ProductEngine 76872412a2 MAINT-5138 FIXED Second Life Viewer's window title is "Second Life " with a trailing space 2015-05-19 00:44:43 +03:00
Mnikolenko ProductEngine 89321a56fd increment viewer version to 3.7.29 2015-04-28 12:03:31 +03:00
Oz Linden b2200f06da MAINT-5147: correct menu colors for test viewers 2015-04-22 16:06:48 -04:00
simon a219cf1c98 Merge viewer-release 2015-04-15 15:07:13 -07:00
Oz Linden a8ef252571 merge changes for 3.7.27-release 2015-04-13 16:23:36 -04:00
Oz Linden 5c6cf3e7fb restore the ll[io]fstream because we need them as wrappers on Windows for wide char paths; on other platforms they are now just typedefs to the std classes 2015-04-10 11:02:37 -04:00
Oz Linden 8b42c7898e replace llifstream and llofstream with std::ifstream and std::ofstream respectively 2015-04-07 17:59:28 -04:00
Oz Linden 3a57b18896 convert llifstream and llofstream to std::ifstream and std::ofstream respectively 2015-04-07 17:28:05 -04:00
Oz Linden 66bc510786 detect xml errors in parsing xml files and remove those files 2015-04-02 21:43:34 -04:00
Oz Linden 3cf8a1ce6e Clean up impostors and visual muting
Rename the settings that control them to be more descriptive
Remove the separate boolean setting (RenderUseImpostors) that governed both
Establish default values based on gpu class for impostors and visual muting
2015-02-20 12:56:45 -05:00
Oz Linden 53fb7f9998 merge storm-2082 changes 2015-02-04 08:45:49 -08:00
Oz Linden 6f3cf79a3a merge changes for 3.7.24-release 2015-01-13 13:46:45 -05:00
maksymsproductengine 027899963c merge with 3.7.23-release 2014-12-19 23:20:47 +02:00
andreykproductengine 797f221e67 MAINT-4708 better grouping of ack messages between viewer and server 2014-12-18 20:05:36 +02:00
Oz Linden fe627f6474 MAINT-4716: correct reading of and debug display for avatar render cost info 2014-12-15 15:59:49 -05:00
andreykproductengine 35a8938892 MAINT-4690 FIXED forced send_agent_update(TRUE) in idle() results in large amounts of useless UDP traffic 2014-11-25 16:29:40 +02:00
Nat Goodspeed fbaff6d3a0 Eliminate LLAppViewer::cleanup() dup --analyzeperformance code block.
Not sure at what point the redundancy was introduced, but it seems clear we
only want to run performance analysis once per shutdown.
2014-11-12 17:55:52 -05:00
Nat Goodspeed 3920d946c6 Introduce fast_exit() wrapper for _exit() so we can boost::bind() it. 2014-10-14 16:44:29 -04:00
dolphin f9113c286f Merge 2014-10-09 16:10:00 -07:00
Aura Linden c25a786640 Pulled merge from viewer-tiger 2014-09-19 10:54:55 -07:00
Aura Linden b12e241751 Merged with windows fixes. 2014-08-15 18:51:20 -07:00
Aura Linden 370aa671c6 Allegedly hides voice position on teleport. Needs testing. 2014-08-15 18:49:54 -07:00
Aura Linden 7060527bbc Added delay to Windows shutdown to let SLVoice die a good death. 2014-08-15 17:30:09 -07:00
Aura Linden 7540664183 Ported from defective branch. 2014-08-13 18:12:25 -07:00
dolphin 81c342dfa9 Merge with 3.7.13-release 2014-08-06 09:22:43 -07:00
dolphin 487fce4afa Merge with 3.7.11-release 2014-07-09 15:22:12 -07:00
simon 3e6698073c Merge viewer-release and become version 3.7.12 2014-07-07 14:49:45 -07:00
simon bfa42c9e28 Merge downstream code and become 3.7.12 2014-07-07 16:17:53 -07:00
simon d760a6889d Merge downstream code 2014-06-18 19:02:25 -07:00
dolphin 299921de32 Merge with 3.7.9-release 2014-06-17 13:09:15 -07:00
simon 592024b580 Merge viewer-release and become version 3.7.9 2014-06-17 10:40:42 -07:00
Oz Linden e15002a11c merge changes for 3.7.9-release 2014-06-16 11:42:37 -04:00
Stinson Linden 47a5e1c751 MAINT-4009: Ensuring that the local bitmaps are cleaned up on app exit. 2014-06-05 23:15:43 +01:00
Ricky Curtice 98720c3cec Merge 2014-06-05 06:31:30 -07:00
Mnikolenko ProductEngine a7b523b36a MAINT-4071 FIXED Use LLViewerStats::instance().getRecording() to get correct stats. 2014-05-29 13:49:25 +03:00
dolphin 0481494c2d Merge with 3.7.8-release 2014-05-20 10:03:09 -07:00
Stinson Linden babd89b770 Pull and merge from ssh://hg@bitbucket.org/lindenlab/viewer-release. 2014-05-19 22:19:55 +01:00
simon dc4c184696 Merge downstream version 3.7.8 code 2014-05-07 13:19:05 -07:00
dolphin 48fece4473 Merge with 3.7.7-release 2014-05-07 11:14:26 -07:00
simon 250db74bf9 Pull and merge viewer-release as version 3.7.8 2014-05-07 10:56:41 -07:00
Oz Linden a98b4b6bee merge changes for 3.7.7-release 2014-05-07 11:09:04 -04:00
Stinson Linden 37d620463b MAINT-4009: Cleaning up the error callstacks memory before app quit. 2014-04-28 19:18:47 +01:00
Stinson Linden 5e225213f6 MAINT-4009: Adding an ares cleanup call to free the allocated memory. 2014-04-23 17:57:23 +01:00
dolphin f515e2b1ee Merge with 3.7.6-release 2014-04-22 16:34:30 -07:00
Xiaohong Bao ae564140c0 Merge 2014-04-22 12:19:28 -06:00
Oz Linden b4ca93cadc merge up to 3.7.6-release 2014-04-22 13:05:26 -04:00
Oz Linden b1a7137ba6 merge changes for 3.7.6-release 2014-04-21 16:21:31 -04:00
simon a5a0a0b136 Merge downstream code 2014-04-21 12:48:50 -07:00
simon 0b9a777bfd Merge downstream code updating version to 3.7.7 2014-04-21 12:36:35 -07:00
Aura Linden e5dae42252 Fix for MAINT-5707 bad breakpad behavior with teleport links 2014-04-14 15:11:42 -07:00
dolphin ae5b48495f Merge with 3.7.5-release 2014-04-14 10:16:39 -07:00
Oz Linden 375c05ac43 merge changes for 3.7.5-release 2014-04-08 11:41:12 -04:00
Oz Linden 32bbb07f0a merge changes for 3.7.5-release 2014-04-08 11:36:22 -04:00
Richard Linden 98aabdc176 merge with release 2014-04-07 19:09:40 -07:00
simon c9620e24d3 Merge downstream code 2014-04-07 14:29:18 -07:00
simon 991636d57b Merge in viewer-release and version update to 3.7.6 2014-04-07 14:26:15 -07:00
Aura Linden 1d15ac293b Double init of logging probably due to merge fail. 2014-03-26 05:26:10 -07:00
Aura Linden 9ea2694c0e Not ideal but sufficient. 2014-03-26 02:07:29 -07:00
Aura Linden 5b7929364b Still wasn't doing the right thing with log files. 2014-03-25 18:30:39 -07:00
Aura Linden 0893b49ebd The simple approach has not worked. This hybrid solution should avoid the Windows issues and get us per-run logfiles. 2014-03-24 22:44:51 -07:00
Aura Linden 35ab71d8ea Returned Secondlife.log to main directory due to unforeseen LLErrorThread complexities. 2014-03-20 12:04:39 -07:00
Oz Linden bd4f4ee793 logging cleanup in support of debugging text editor problems 2014-03-19 14:17:13 -04:00
Ricky Curtice e9116575bf OPEN-209: Corrected all instances of trigraphs in the code.
Trigraphs can cause some real special headaches.  The only part that's annoying is the comment in newview/llimview.cpp where there's an unfortunate collision of a trigraph sequence with a character sequence that could be displayed by the viewer. Thankfully, it's only a comment!
2014-03-13 20:36:05 -07:00
Aura Linden 706ec08deb Merged in viewer-release 2014-03-13 21:55:22 +00:00
Richard Linden 5b846ed2a6 merge with release 2014-03-12 12:48:43 -07:00
dolphin 34c12d009c Merge 2014-03-10 13:06:06 -07:00
Aura Linden d2bb4dae98 Fixes for crash reporter startup race condition, crash reporter CPU use, Secondlife.log filehandle, XP Crash. 2014-03-07 14:58:22 -08:00
Aura Linden 800409bdfc Maint-3135 Discovered apple made this change in 10.6.8 not 10.7.0 2014-02-18 14:11:17 -08:00
obscurestar 262f8b8473 Was not using correct name for results of file search. 2014-01-26 02:56:23 -08:00
Aura Linden ea7e6a5174 Some cleanup of string to wstring conversion and vice versa. 2014-01-14 15:28:35 -08:00
Aura Linden ddd6b8f91b Mac Fullscreen fix for MAINT-3288 and MAINT-3135 2013-12-17 00:12:26 -08:00
Richard Linden 6b84d40558 added some comments and changed calls from get_master_thread_recorder()
over to get_thread_recorder() to be agnostic about which thread we're running on
2013-12-05 21:58:45 -08:00
Aura Linden ce2cd00cc5 Removed debugging code. 2013-12-04 19:57:11 -08:00
Aura Linden 6809348125 Creating a cleaner branch 2013-12-03 17:06:06 -08:00
Richard Linden 391ac367d6 SH-4634 FIX Interesting: Viewer crashes when receiving teleport offer
renamed fast timers to have unique names, changes instance tracker to never allow duplicates
2013-11-19 17:40:44 -08:00
Richard Linden 89d5d01c41 MAINT-3432 FIX Help -> Report Bug should open jira with pre-populated fields
moved viewer information strings into LLAppViewer
replaced Help>Report a Bug with direct use of Jira link
2013-11-11 18:41:25 -08:00
Richard Linden fe518bde8e merge with release 2013-11-06 17:22:04 -08:00
Andrew Meadows 33efe8d3c2 SH-3419 Replace per-object time dilation factor with region-wide
Reviewed with Simon
2013-10-25 16:46:18 -07:00
dolphin 7bbb802385 Merge with 3.6.9 2013-10-25 09:52:31 -07:00
Richard Linden ab43be5ddb moved some common functionality from LLTrace::BlockTimerStatHandle to BlockTimer
updates appearance utility dependency
2013-10-23 13:24:47 -07:00
Richard Linden 9f097380b8 removed asserts in order to get testable builds again
added unpause() behavior and changed pause() to do nothing when already stopped
2013-10-18 09:14:53 -07:00
Richard Linden 697d2e720b renamed TimeBlock to BlockTimerStatHandle 2013-10-15 20:24:42 -07:00
Oz Linden 9c313aea13 merge changes for DRTVWR-336 2013-10-15 17:47:37 -04:00
Richard Linden 80dfbbaacd merge from viewer-release 2013-10-08 11:59:24 -07:00
Merov Linden 1e32b9dd33 Pull merge of lindenlab/viewer-release 2013-10-04 09:47:26 -07:00
dolphin c2c060d440 Merge with 3.6.7 2013-10-04 09:19:25 -07:00
Richard Linden 754e8752a9 added initial memory usage tracking for lltrace 2013-10-03 14:30:34 -07:00
Richard Linden e0a443f5a6 BUILDFIX: fix for mac builds
also, fixed alignment of tick labels on stat bars
2013-09-27 11:18:39 -07:00
Richard Linden fc8c3a4cf7 merge 2013-09-16 21:12:18 -07:00
Richard Linden 42d66af318 FIX: SH-4499 Mac generates lots of 'Entering main_loop' log spam 2013-09-13 11:28:51 -07:00
Richard Linden 52da9f5f49 merge with viewer-release 2013-09-09 18:58:41 -07:00
Merov Linden 094a226fd8 Pull from lindenlab/viewer-release 2013-09-09 14:27:48 -07:00
simon e7ac4695e3 Merge viewer-release 2013-09-09 12:59:17 -07:00
dolphin 07cb32449f Merge with 3.6.5 2013-09-09 12:46:20 -07:00
Richard Linden c6b6ae7a45 merge 2013-09-07 21:54:03 -07:00
Richard Linden 3fd68662f2 added memory usage and occlusion events to traces
renamed "current" to "primary" when referring to accumulators
2013-09-07 21:16:39 -07:00
Richard Linden cbe397ad13 changed fast timer over to using macro
another attempt to move mem stat into base class
2013-09-05 14:04:13 -07:00
Oz Linden 3364614f8b add "Settings" logging tag to make debugging settings loading easier 2013-08-29 09:27:12 -04:00
Gilbert Gonzales c767354a20 merging viewer release 2013-08-28 18:30:38 -07:00
dolphin d29268f331 Merge 2013-08-27 16:51:05 -07:00
Oz Linden a359d9d80c merge changes for 3.6.4-release 2013-08-27 10:37:02 -04:00
simon 27d637d0f1 Merge downstream code from CHUIStorm release 2013-08-26 14:43:23 -07:00
Oz Linden 7ca10e5161 merge changes for 3.6.4-release 2013-08-26 15:14:12 -04:00
Xiaohong Bao 74d4933ab7 reversion of object cache version number change 2013-08-26 11:32:58 -06:00
Richard Linden b667d20e00 fixed issue with poor framerate after clearing cache 2013-08-23 15:34:41 -07:00
Graham Madarasz (Graham Linden) 19726783cd MAINT-3046 make LLNotifications clear out vecs of LLNotificationChannelPtr so singleton cleanup doesn't do things it really ought not do 2013-08-23 14:44:46 -07:00
Gilbert Gonzales a8d5b070b0 merging viewer release 2013-08-22 14:58:10 -07:00
Oz Linden c42a91421f merge changes for 3.6.3-release 2013-08-20 10:37:10 -04:00
dolphin 98628066eb Merge 2013-08-19 17:17:20 -07:00
Oz Linden 70cacc4d17 merge changes for 3.6.3-release 2013-08-19 15:51:40 -04:00
Oz Linden 82bf4e4db2 merge changes for DRTVWR-285 2013-08-19 15:15:15 -04:00
Richard Linden 612892b45a SH-4433 WIP: Interesting: Statistics > Ping Sim is always 0 ms
continued conversion to units system
made units perform type promotion correctly and preserve type in arithmetic
e.g. can now do LLVector3 in units
added typedefs for remaining common unit types, including implicits
2013-08-18 22:30:27 -07:00
Richard Linden 25937040de SH-4433 WIP: Interesting: Statistics > Ping Sim is always 0 ms
converted many values over to units system in effort to track down
source of 0 ping
2013-08-16 12:38:12 -07:00
Richard Linden b39cf4770b Backed out changeset: ed09997b4652 2013-08-12 20:08:18 -07:00
Richard Linden b8d49dab9a merge 2013-08-12 20:07:41 -07:00
Richard Linden e340009fc5 second phase summer cleaning
replace llinfos, lldebugs, etc with new LL_INFOS(), LL_DEBUGS(), etc.
2013-08-09 17:11:19 -07:00
Oz Linden 86b4019684 merge changes for DRTVWR-333 2013-08-07 12:17:39 -04:00
Xiaohong Bao ddef4d7ff7 revert some LLUnit changes to temporarily fix SH-4399: Interesting: Texture console MB Bound 0/384 and texture queue bounces once per second 2013-08-06 16:35:46 -06:00
Nat Goodspeed 7f6e7fc0cb CHOP-951, IQA-1477: Validate args for numeric command-line switches.
The logic in llcommandlineparser.cpp's setControlValueCB() callback function
for converting command-line switch argument values from string to the actual
type of the map-to settings variable had a couple special cases for boolean
and LLSD array. But for S32, U32 and F32, it simply used default LLSD
string-to-numeric conversion. LLSD's string-to-numeric conversion is a bit
lame: for non-numeric strings, it shrugs and returns 0.
Introduce onevalue() and badvalue() helper functions that, like certain errors
during command-line parsing, throw LLCLPError. Use them to streamline certain
redundancies in setControlValueCB(). Introduce convertTo<T>() helper function
that uses boost::lexical_cast() for slightly more stringent conversions. Add
cases for U32, S32 and F32 targets.
setControlValueCB() is actually called only by LLControlGroupCLP::notify(),
not during actual command-line parsing.
Make LLControlGroupCLP::notify() return bool. Make it catch LLCLPError, set
the error for getErrorMessage() and return false on that exception.
Package LLAppViewer::initConfiguration()'s response to initParseCommandLine()
returning false as a new handleCommandLineError() function; invoke it both
there and when LLControlGroupCLP::notify() returns false.
2013-08-05 19:43:06 -04:00
Nat Goodspeed 32a953f65e CHOP-959: Honor --graphicslevel switch even on first viewer run.
Previous CHOP-959 logic set a flag to remember that settings variable
RenderQualityPerformance was set (by --graphicslevel), so it could be applied
once LLViewerWindow is constructed. But on first viewer run, LLViewerWindow
constructor calls LLFeatureManager::applyRecommendedSettings(), which resets
that settings variable! So don't just set a flag, actually capture the
requested RenderQualityPerformance value for later.
2013-08-02 10:50:19 -04:00
Richard Linden 910874a7e3 more cleanup 2013-07-30 19:14:19 -07:00
Richard Linden a2e22732f1 Summer cleaning - removed a lot of llcommon dependencies to speed up build times
consolidated most indra-specific constants in llcommon under indra_constants.h
fixed issues with operations on mixed unit types (implicit and explicit)
made LL_INFOS() style macros variadic in order to subsume other logging methods
such as ll_infos
added optional tag output to error recorders
2013-07-30 19:13:45 -07:00
Oz Linden 4a17569605 merge changes for CHOP-975 2013-07-30 16:12:19 -04:00
Oz Linden 64c1fb0b82 get rid of warning generated by trying to save obsolete VersionChannelName setting 2013-07-30 11:46:08 -04:00
Jeff (Gioffredo Linden) ee0b66f080 VITA test framework - record events support 2013-07-25 16:07:16 -04:00
Richard Linden dce3f9bc8f SH-4297 WIP interesting: viewer-interesting starts loading cached scene late
added commented out log timestamp override for scene load performance monitoring
2013-07-24 23:07:34 -07:00
Richard Linden 3430444212 BUIDLFIX: forgot to extract value from units object for calling llformat 2013-07-24 22:41:02 -07:00
Richard Linden 1e8f9fd80d SH-4376 FIX: Interesting: in Statistics, replace the text "0" with "n/a" when
there are no samples during the time period.
added hasValue to SampleAccumulator so we don't print a value when we don't have
a single sample yet
added some disabled log output for scene load timing
2013-07-24 19:36:43 -07:00
Richard Linden 40a7c63e89 fixed crash on exit 2013-07-22 18:22:08 -07:00
Richard Linden 11e14cd3b0 SH-4299Interesting: High fps shown temporarily off scale in statistics console
various fixes to lltrace
start() on started recording no longer resets
fixed various instances of unit forgetfullness in lltrace
recording split now has gapless timing
scene monitor now guarantees min sample time
renamed a bunch of stats
added names to debug thread view on windows
2013-07-15 11:05:57 -07:00
Oz Linden 34c77159f7 CHOP-963: Make update service query url depend on the grid rather than settings 2013-07-09 08:39:22 -07:00
Richard Linden d122318bef SH-4299 WIP: Interesting: High fps shown temporarily off scale in statistics console
added percentage/ratio units
added auto-range and auto tick calculation to stat bar to automate display stats
2013-07-08 00:55:17 -07:00
Nat Goodspeed d8565b05a5 CHOP-959: Introduce CmdLineChannel settings var, map --channel to it. 2013-07-02 16:33:40 -04:00
Nat Goodspeed 09d8d17382 CHOP-959: Introduce CmdLineLoginLocation var for --url and --slurl.
Route --url and --slurl command-line switches through a common settings
variable. Treat them uniformly now. (Previously, passing --url would notice a
grid-specific SLURL and preselect that grid; --slurl wouldn't. Now both do.)
2013-07-02 15:30:49 -04:00
Richard Linden 04bdc8ba83 SH-4294 FIX Interesting: Statistics Texture cache hit rate is always 0%
also, removed LLTrace::init and cleanup
removed derived class implementation of memory stat for LLMemTrackable
is automatic now
2013-07-01 17:04:01 -07:00
Nat Goodspeed 3d9c74dcc8 CHOP-959: Introduce and use settings vars for some cmd_line switches.
The cmd_line.xml entries:
analyzeperformance
crashonstartup
debugsession
disablecrashlogger
logmetrics
logperformance
noquicktime
replaysession
all specify map-to settings.xml variables -- none of which existed! Introduce
such variables. Instead of detecting the presence of a particular switch in
the command-line parser, use the value of its corresponding settings variable.
2013-07-01 16:19:24 -04:00
Richard Linden 2fc422f39d fixed memory leak due to implementation of LLThreadLocalSingleton
removed LLThreadLocalSingleton
collapsed all thread recorder classes to single type, LLTrace::ThreadRecorder
moved fasttimer stack head to llthreadlocalsingletonpointer via ThreadRecorder
2013-06-30 13:32:34 -07:00
Richard Linden ffa7123bb5 SH-4299 FIX Interesting: High fps shown temporarily off scale in statistics console
added ability to force uniqueness of LLCopyOnWritePointer
converted more variables to units
added convenience function for unit constants
2013-06-28 20:45:20 -07:00
Nat Goodspeed c08b60ac6f CHOP-959: Streamline processing for --graphicslevel switch.
Use map-to in cmd_line.xml to inform the command-line processor that the
target variable for --graphicslevel is RenderQualityPerformance.
That lets us eliminate clunky llappviewer.cpp switch from '0' to 0, etc.
Moreover, previous switch statement only accepted 0 - 3, whereas
LLFeatureManager::setGraphicsLevel() actually accepts 0 - 6. Introduce
LLFeatureManager::isValidGraphicsLevel() and use that to validate.
Replace switch statement in setGraphicsLevel() mapping int constants to string
literals with static vector of level names, using same data for mapping as for
validating level numbers.
2013-06-28 15:26:18 -04:00
Richard Linden 808d3eff19 SH-4299 WIP: Interesting: High fps shown temporarily off scale in statistics console
fixed some lltrace logic errors
more consistent syncing of timestamps of sample values in recording stack
selection of primary buffers was completely incorrect
assignment of recordings got wrong play state due to implicit
operator = defined in base class
fixed asset stats only working up to the first send
2013-06-27 00:07:21 -07:00
Dave Parks 79029149a4 Automated merge with file:///F:%5Cviewer-bear 2013-06-21 12:51:29 -05:00
Richard Linden a2a6bf20d7 merge with release 2013-06-20 16:46:23 -07:00
Dave Parks 9ea2d90a0d Automated merge with http://bitbucket.org/lindenlab/viewer-release 2013-06-20 12:10:26 -05:00
Merov Linden 7da4c65191 Pull merge from lindenlab/viewer-release 2013-06-19 14:06:06 -07:00
Geenz 9c83d4b5b8 Merge with viewer-release. 2013-06-19 15:47:57 -04:00
dolphin ea40b3a37b Merge with viewer 3.6.0 2013-06-19 09:58:43 -07:00
Richard Linden c5fc8f9006 SH-4246 FIX interesting: fast timers significantly decreases framerate
moved collapsed flag to fast timer tree node
2013-06-19 08:23:53 -07:00
Geenz 0af636e632 Merged with viewer-release 2013-06-17 04:39:47 -04:00
Richard Linden 9fd3af3c38 SH-3931 WIP Interesting: Add graphs to visualize scene load metrics
changed Units macros and argument order to make it more clear
optimized units for integer types
fixed merging of periodicrecordings...should eliminate duplicate entries in sceneloadmonitor history
2013-06-13 15:29:15 -07:00
Richard Linden 0a96b47663 merge with viewer-release 2013-06-05 19:05:43 -07:00
Oz Linden dd2ede9991 Fix and organize code for managing marker files that detect last_exec_event and last_exec_duration 2013-06-03 17:49:51 -04:00