Commit Graph

396 Commits (e46323b0b9fea77522ee4637a82e2e86de15bb83)

Author SHA1 Message Date
Andrey Kleshchev 5fc91f6911 SL-18221 Water texture does not load after clearing cache
Water texture should load only after having caps.
Prefetch textures should load only after having caps.
Prefetch list is now per grid
2022-10-17 23:11:14 +03:00
Andrey Kleshchev f7ecf0ee38 SL-18065 Fix bake textures' fetch loop 2022-09-20 01:53:43 +03:00
Mnikolenko Productengine c0b586a7e1 SL-17723 Remove use of UDP image fetch 2022-09-16 23:27:54 +03:00
Dave Parks 197ac7cc20 Merge remote-tracking branch 'remotes/origin/DRTVWR-563' into DRTVWR-559 2022-08-30 10:46:36 -05:00
Dave Parks 14af7cabdb SL-17997 Fix for crash on shutdown 2022-08-30 10:32:09 -05:00
Nat Goodspeed a65e039174 SL-17483: Merge branch 'DRTVWR-563' of viewer into sl-17483 2022-06-09 13:03:58 -04:00
Nat Goodspeed 50dca86f64 SL-17483: Recast LLImageDecodeThread as a facade for ThreadPool.
Remove all references to LLQueuedThread (but emulate a couple bits of its API
such as handle_t and getPending()).

Migrate ImageRequest into llimageworker.cpp. It has never been part of
LLImageDecodeThread's public API. Remove ImageRequest tests.

Remove all references to LLImageDecodeThread::pause(). The idea of pausing
another thread is bizarre to me, and LLThreadPool has no such operation. Nor
does it have an abortRequest().
2022-06-09 12:06:23 -04:00
Sabrina Shanman a4fc01f410 Merged in SL-17489 (pull request #1010)
SL-17489

Approved-by: Dave Parks
2022-06-07 21:19:57 +00:00
Dave Parks 99189ff2d5 SL-17547 Fix for crash on shutdown introduced in last commit. 2022-06-07 15:24:40 -05:00
Dave Parks 197baebc62 SL-17547 Fix for crash in getCurrentDiscardLevelForFetching (and add runtime check and assertion to avoid crash in production and detect crash in development). 2022-06-07 15:12:58 -05:00
Cosmic Linden 7908ae701f SL-17489: Fix map tile log spam and resulting excessive invalid texture requests.
This was affecting map tiles that the agent is not allowed to see (HTTP error: 403 forbidden). The URLs of these map tile requests were then getting cleared, so when these map tiles were re-requested (up to 10 times per second, from LLViewerFetchedTexture::updateFetch), the request would use the wrong URL and get a 404.

Stay in DONE state if there is no new work to do, reducing unneeded requests for textures while leaving open the possibility to re-request a texture at different resolution. Alternatively, we could introduce a new FAILED state here. The current DONE state has nuance, and can either mean "texture loading failed" or "texture successfully loaded at a certain LOD." And a 4xx error is generally irrecoverable. Will strongly consider a FAILED state.

Also, don't clear the map URL, so that any future network requests for the map textures request the correct resource.
2022-06-07 12:17:15 -07:00
Cosmic Linden a562f6fe51 SL-17489: Improve warning message for fetching texture with improper URL 2022-06-06 14:59:29 -07:00
Dave Parks 220afbcda0 SL-17285 Add proper reflection probe support to LLVOVolume, LLPrimitive, and LLPanelVolume 2022-06-02 18:42:38 -05:00
Dave Parks f4473528eb SL-17485 Remove unused members to make mac build happy. 2022-06-01 11:31:45 -05:00
Dave Parks dfa71e2bb5 SL-17490 Only update a subset of textures each frame and remove dead debug code. 2022-05-31 11:57:15 -05:00
Nat Goodspeed 06aa68c2fb SL-17219: Delete some unused declarations.
These trigger fatal warnings on Mac.
2022-05-10 12:32:43 -04:00
Nat Goodspeed 5bed414ba9 SL-17219: Fix bug: dangling pointer to destroyed std::string. 2022-05-10 12:30:59 -04:00
Dave Parks b6841d75c2 SL-17219 WIP - Texture pipeline overhaul 2022-04-15 19:02:07 -05:00
Andrey Kleshchev 97a103255e Merge branch 'master' (DRTVWR-557) into DRTVWR-546
# Conflicts:
#	autobuild.xml
#	doc/contributions.txt
#	indra/cmake/GLOD.cmake
#	indra/llcommon/tests/llprocess_test.cpp
#	indra/newview/VIEWER_VERSION.txt
#	indra/newview/lldrawpoolavatar.cpp
#	indra/newview/llfloatermodelpreview.cpp
#	indra/newview/llmodelpreview.cpp
#	indra/newview/llviewertexturelist.cpp
#	indra/newview/llvovolume.cpp
#	indra/newview/viewer_manifest.py
2022-03-01 13:41:42 +02:00
Brad Payne (Vir Linden) e5cd9cb90f merge 2021-10-22 18:11:48 +01:00
Dave Parks d00272e0cc SL-16099 Multi-threaded OpenGL usage on Windows, enable Core Profile and VAOs by default. 2021-10-11 16:03:40 +00:00
Brad Payne (Vir Linden) a184a0fbee SL-15999 - noninteractive mode: create minimal objects,load no textures 2021-09-28 20:10:06 +01:00
Mnikolenko Productengine 3950341916 SL-15177 Added LLTextureFetchTester to log texture fetching state timers 2021-04-29 17:37:26 +03:00
Andrey Kleshchev 2938b8238c SL-12889 Failed to cache image crashes 2020-05-25 23:59:56 +03:00
andreykproductengine d081df14ef SL-11309 Crash on attempt to costruct singletone 2019-05-29 19:28:52 +03:00
maxim_productengine a6cc3b7159 SL-11074 FIXED "Cache Hit Rate" in Statistics is broken 2019-05-06 17:14:55 +03:00
AndreyL ProductEngine 65bf63c973 Merged in lindenlab/viewer-bear 2019-04-02 22:12:55 +03:00
andreykproductengine 26fae750ba SL-10291 Replace apr_mutex with standard C++11 functionality 2019-01-14 22:04:44 +02:00
Graham Linden 524fbefd2a Merge 2018-06-27 15:28:26 +01:00
Graham Linden graham@lindenlab.com c0413250b7 Merge 5.1.5 2018-05-18 19:25:54 +01:00
Graham Linden graham@lindenlab.com c0e16b2800 Add stats for tex cache read / decode / fetch latency for comparison of old cache code with TCO. 2018-04-11 20:14:33 +01:00
Andrey Kleshchev 6e445e82e2 MAINT-8091 Removed deprecated and unused private memory pooling 2018-01-30 14:03:26 +00:00
andreykproductengine 34d3b49d1f MAINT-2124 Texture allocation issues 2017-12-05 17:54:17 +02:00
Kitty Barnett 18fa2e6471 MAINT-7081 [FIXED] Access (write) violation / buffer overrun in LLTextureFetchWorker::doWork()
The trouble lines are:
			U8 * buffer = (U8 *) ALLOCATE_MEM(LLImageBase::getPrivatePool(), total_size);
			if (cur_size > 0)
			{
				memcpy(buffer, mFormattedImage->getData(), cur_size);
			}

If 'cur_size > mHttpReplyOffset + append_size' then 'total_size -= src_offset' will cause
total_size to be smaller than cur_size causing a write access violation on the memcpy.

Since the response is invalid it seemed best to make it follow the other failed partial condition.
(transplanted from 737e28ec6b4d74f3ff915a4effc13d7b615a6a9b)
2017-10-12 22:55:15 +02:00
andreykproductengine 72b0cb1467 MAINT-7779 Logging update 2017-10-18 16:31:36 +03:00
andreykproductengine 5cd56406ab SL-683 Fixed Logging parameters not taking effect immediately 2017-09-20 15:53:34 +03:00
Brad Payne (Vir Linden) 8528a9ae13 MAINT-7343 - improved error case handling and checking for unlikely corners 2017-05-09 10:58:43 -04:00
Brad Payne (Vir Linden) b7b8d6e1ae MAINT-7343 - added periodic logging of state of the asset store. 2017-04-26 12:39:14 -04:00
Brad Payne (Vir Linden) a1b6e9b438 MAINT-7166 - diagnostics for movement 2017-03-29 20:29:40 -04:00
Brad Payne (Vir Linden) ca74323ee8 SL-409 - added version field = 2 to asset stats, made viewer-side metrics files exactly match the payload sent to simulator. 2017-03-21 08:56:30 -04:00
Brad Payne (Vir Linden) e9c786ec60 SL-409 - fixes for viewer asset metrics. Copy and/or assignment of Recording objects is failing, changed to create LLSD blob earlier and just copy that. 2017-03-10 11:29:48 -05:00
Brad Payne (Vir Linden) f028290c9e SL-409 - added size stats to metrics for textures 2017-03-07 08:06:03 -05:00
Brad Payne (Vir Linden) 09a6daabd2 SL-409 - consolidated user of ViewerAsset cap for mesh and texture fetching as well. 2017-03-06 14:31:31 -05:00
Oz Linden 950c41d184 merge 4.0.4-release and MAINT-5974 2016-05-06 10:28:42 -04:00
Oz Linden 9be58e915a merge with 4.0.3-release 2016-04-04 15:53:09 -04:00
AndreyL ProductEngine 0ff6fa576a Merged in lindenlab/viewer-bear 2016-04-01 06:18:49 +03:00
andreykproductengine 0e155c51a9 MAINT-6257 Textures loading issues. 2016-03-29 18:52:54 +03: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
andreykproductengine 30f9287645 MAINT-2199 reverted previous change, refixed missing cloud and ban line 2016-03-03 00:15:33 +02:00