Commit Graph

243 Commits (02f23b3e073078924a9d37ee0f630795d93afbb2)

Author SHA1 Message Date
Ansariel 6e340961c0 Merge viewer-neko 2019-10-30 18:05:01 +01:00
andreykproductengine 94d4364084 SL-12103 More reliable memory detection 2019-10-16 22:36:10 +03:00
Ansariel ad941e4e42 Merge viewer-neko 2019-04-17 19:17:08 +02:00
andreykproductengine a6595dfa9b SL-10344 Fix boost priority 2019-04-16 19:50:29 +03:00
Ansariel bcb8dcee52 Merge viewer-neko 2018-03-13 19:48:24 +01:00
Andrey Kleshchev 4156fb832c MAINT-6363 Normal and specular maps should not be downloaded if ALM is off 2018-03-06 12:59:32 +00:00
AndreyL ProductEngine 57a99273ed Merged in lindenlab/viewer-release 2018-01-17 03:20:12 +02:00
Ansariel 832911cea5 Merge Firestorm LGPL 2018-01-04 12:53:34 +01:00
Andrey Kleshchev 062be76dd5 MAINT-4354 Render stalls in object heavy regions 2017-12-15 12:43:54 +00:00
Andrey Kleshchev 8af9363e89 MAINT-4354 Render stalls in object heavy regions 2017-12-15 12:43:54 +00:00
Ansariel e6f9a5e2db Merge viewer64 2017-07-27 21:07:14 +02:00
Nicky 985730a52c Merge. 2017-05-18 17:40:24 +02:00
Nat Goodspeed 52899ed62a DRTVWR-418, MAINT-6996: Rationalize LLMemory wrt 64-bit support.
There were two distinct LLMemory methods getCurrentRSS() and
getWorkingSetSize(). It was pointless to have both: on Windows they were
completely redundant; on other platforms getWorkingSetSize() always returned
0. (Amusingly, though the Windows implementations both made exactly the same
GetProcessMemoryInfo() call and used exactly the same logic, the code was
different in the two -- as though the second was implemented without awareness
of the first, even though they were adjacent in the source file.)

One of the actual MAINT-6996 problems was due to the fact that
getWorkingSetSize() returned U32, where getCurrentRSS() returns U64. In other
words, getWorkingSetSize() was both useless *and* wrong. Remove it, and change
its one call to getCurrentRSS() instead.

The other culprit was that in several places, the 64-bit WorkingSetSize
returned by the Windows GetProcessMemoryInfo() call (and by getCurrentRSS())
was explicitly cast to a 32-bit data type. That works only when explicitly or
implicitly (using LLUnits type conversion) scaling the value to kilobytes or
megabytes. When the size in bytes is desired, use 64-bit types instead.

In addition to the symptoms, LLMemory was overdue for a bit of cleanup.

There was a 16K block of memory called reserveMem, the comment on which read:
"reserve 16K for out of memory error handling." Yet *nothing* was ever done
with that block! If it were going to be useful, one would think someone would
at some point explicitly free the block. In fact there was a method
freeReserve(), apparently for just that purpose -- which was never called. As
things stood, reserveMem served only to *prevent* the viewer from ever using
that chunk of memory. Remove reserveMem and the unused freeReserve().

The only function of initClass() and cleanupClass() was to allocate and free
reserveMem. Remove initClass(), cleanupClass() and the LLCommon calls to them.

In a similar vein, there was an LLMemoryInfo::getPhysicalMemoryClamped()
method that returned U32Bytes. Its job was simply to return a size in bytes
that could fit into a U32 data type, returning U32_MAX if the 64-bit value
exceeded 4GB. Eliminate that; change all its calls to getPhysicalMemoryKB()
(which getPhysicalMemoryClamped() used internally anyway). We no longer care
about any platform that cannot handle 64-bit data types.
2017-05-02 10:51:18 -04:00
Nicky 688bf1e547 Synchronize with viewer64 source. 2017-01-11 15:36:33 +01:00
Ansariel 71f1707b99 Merge viewer-lion 2016-05-23 17:41:19 +02:00
Ansariel f68896905b Merge Firestorm LGPL 2016-05-23 16:09:09 +02:00
Ansariel 9b7a3fd2b4 Merge viewer-lion 2016-05-23 15:56:55 +02:00
Ansariel 732f199cef Merge Firestorm LGPL 2016-05-18 22:00:02 +02:00
AndreyL ProductEngine 602c9bc04a MAINT-6317 Restored the fix after a conflict resolution 2016-05-20 02:12:26 +03:00
AndreyL ProductEngine c50f96b492 Merged in lindenlab/viewer-lynx 2016-05-20 02:06:08 +03:00
andreykproductengine d3de134da0 MAINT-6409 invisiprims should be preloaded 2016-05-18 17:17:32 +03:00
andreykproductengine e795fee864 MAINT-6409 texture_list xml file should be in cache. 2016-05-17 17:05:59 +03:00
Ansariel c8b4e71c23 Merge Firestorm LGPL 2016-05-12 09:15:48 +02:00
Tonya Souther fe14a23bbc BUG-11933: Ignore invisiprim textures in saved texture list. 2016-05-11 21:42:52 -05:00
Ansariel d4af16025f Don't clamp physical system memory clamped to 4GB 2016-05-10 10:36:37 +02:00
Ansariel a0188a5358 Merge Firestorm LGPL 2016-05-09 12:41:24 +02:00
Oz Linden 950c41d184 merge 4.0.4-release and MAINT-5974 2016-05-06 10:28:42 -04:00
Ansariel 607625a1b5 Merge viewer-quickgraphics 2016-04-23 12:26:49 +02:00
ruslantproductengine 503dc6ee65 MAINT-6317 [QuickGraphics-RC] Some rigged mesh attachments render fully on jellybaby avatars when ALM is enabled
FIXED
- remove global identifier for the black texture
- add black texture 2x2x3 localy on apllication startup
- add special flag to LLViewerFetchedTexture for protect from removing
2016-04-21 12:47:49 +03:00
Ansariel 2797c5938a Merge Firestorm LGPL 2016-04-05 10:47:23 +02:00
Oz Linden 9be58e915a merge with 4.0.3-release 2016-04-04 15:53:09 -04:00
Ansariel df4205dc46 Merge viewer-bear 2016-04-02 03:52:29 +02:00
Nicky e71f62e0b9 Merge. 2016-04-01 18:37:30 +02:00
Nicky a50faa943c Merge. 2016-04-01 12:59:37 +02:00
AndreyL ProductEngine 0ff6fa576a Merged in lindenlab/viewer-bear 2016-04-01 06:18:49 +03:00
AndreyL ProductEngine eb413ec41e Merged in lindenlab/viewer-release 2016-04-01 03:56:20 +03:00
andreykproductengine 0e155c51a9 MAINT-6257 Textures loading issues. 2016-03-29 18:52:54 +03:00
andreykproductengine 783cc9756a Backed out changeset: ca5d40144cc2 2016-03-29 15:17:15 +03:00
andreykproductengine d9545003ed MAINT-6257 Particle textures loading issues. 2016-03-25 17:24:06 +02:00
Ansariel d171e16c58 Merge Firestorm LGPL 2016-03-18 10:16:25 +01: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
Ansariel faf58a81eb Merge viewer-bear 2016-03-08 09:08:20 +01:00
Ansariel 5f181d156c Backed out changeset 7848c0344c05 for extended fix by LL 2016-03-08 08:52:36 +01:00
Ansariel 3192fe832f Merge viewer-quickgraphics 2016-03-08 01:41:31 +01:00
AndreyL ProductEngine 37809faefa Merged in lindenlab/viewer-lynx 2016-03-07 18:45:12 +02:00
andreykproductengine 30f9287645 MAINT-2199 reverted previous change, refixed missing cloud and ban line 2016-03-03 00:15:33 +02:00
andreykproductengine 6a37e654ef Merge from viewer-lynx and conflict resolution 2016-02-29 19:23:47 +02:00
andreykproductengine b3e7fff9ae MAINT-2199 restored original UI mechanics, removed icons from UI list 2016-02-27 16:06:54 +02:00
Ansariel 7c36cdc23e Memory leak plugging: Don't add icon textures to the UI texture lists 2016-02-27 00:07:33 +01:00