Commit Graph

435 Commits (32bfafca4dab088b5aab89affb233aaaac65666a)

Author SHA1 Message Date
Rye Mutt a4c2eab969
Fix integer overflow when framebuffers are extremely high resolution resulting in INT_MAX texture bias (#393) 2023-09-28 15:05:37 -05:00
Alexander Gavriliuk 0b02bf5d26 SL-20090 BugSplat Crash: LLViewerFetchedTexture::updateFetch(2099) 2023-09-11 18:21:19 +02:00
RunitaiLinden 50ec54831d
DRTVWR-559 Revert skies to be very close to release and disable tone mapping when probe ambiance is zero.
Hack for desaturating legacy materials has been removed for performance and quality reasons.

Adds a new setting for auto adjusting legacy skies.  This is the PBR "opt out" button.  If disabled, legacy skies will disable tonemapping, automatic probe ambiance, and HDR/exposure.  If enabled, legacy skies will behave as if probe ambiance and HDR scale are 1.0, and ambient will be cut in half.  

HDR scale will act as a sky brightener, but will automatically adjust dynamic exposure so the sky will be properly exposed.  If you want relatively even exposure all the time, set HDR Scale to 1.0.  If you want a high range of exposures between indoor/dark areas and outdoor/bright areas, increase HDR Scale.

Also tuned up SSAO (thanks Rye!).

Reviewed with Brad.
2023-06-01 19:49:23 -05:00
RunitaiLinden 0c7205e5f1 SL-19560 Better fix for blurry BoM textures. 2023-05-23 10:55:50 -05:00
cosmic-linden d6d634d29f
SL-19331: Move media updates off-thread on select hardware (#153)
* SL-19331: Have media updates on the LLImageGL thread even when texture updates are on the main thread. Add config.

Off-thread media updates seem work best performance-wise when using glTexImage2D, not sub_image_lines. Otherwise, there are lots of main thread stalls.

* SL-19331: Bump featuretable

* SL-19331: Cleanup, annotate comment
2023-04-05 11:55:33 -05:00
Brad Linden a548c16989 Merge remote-tracking branch 'origin/main' into DRTVWR-559 2023-03-29 14:54:06 -07:00
Brad Linden 0e178e1256 Fixing unused variables for mac build after SL-19172 work 2023-03-10 16:54:56 -08:00
Dave Parks cdc04d2041 SL-19352 Bump sky dome detail across the board. 2023-03-10 15:07:45 -06:00
Dave Parks 25ede86382 SL-19172 Texture streaming tune up. Incidental decruft. 2023-03-10 10:52:35 -06:00
Dave Parks 2fc0694a33 SL-18122 Fix for HUD text disappearing. 2023-02-10 12:46:16 -06:00
RunitaiLinden 7bd9d21e19
Optimizations, decruft, and intel compatibility pass (#53)
SL-18869, SL-18772  Overhaul VBO management, restore occlusion culling, intel compatibility pass, etc
2023-01-19 09:13:45 -06:00
Dave Parks 20c578b7ae SL-18808 Fix for highlight transparent texture missing. 2022-12-13 11:40:14 -06:00
akleshchev 78feca373e
SL-12069 Backed out changeset: 544a91982eba (#13)
Originally a fix for MAINT-4773/SL-5842 (transparent alpha being white). Reverting due to a critical flaw of the fix replacing material (sometimes server side included). And ignoring user and script input in some cases that makes scripts misbehave.

Viewer should Not modify existing content of own volition.
2022-11-29 21:42:43 +02:00
Henri Beauchamp 9c5043d8c6 Fix a thread safety issue in the GL image worker.
LLViewerTexture::mNeedsCreateTexture needs to be an attomic bool since
it is written both in the main thread and in the GL image worker thread.

We can now enable threaded bump maps creation as a result of this fix.

I have read the CLA Document and I hereby sign the CLA
2022-11-19 21:42:41 +01:00
Dave Parks 8d2ac419b2 SL-18154 Profile guided optimizations vs release viewer. Trim some unused abilities and remove some more fast timers. 2022-11-16 14:49:17 -06:00
Dave Parks a2b09df2db SL-18293 Fix for broken wireframe mode. 2022-10-14 15:52:44 -05:00
Andrey Kleshchev f7ecf0ee38 SL-18065 Fix bake textures' fetch loop 2022-09-20 01:53:43 +03:00
Andrey Kleshchev 72e3262532 SL-18065 Viewer tries to get missing texture endlessly #2 2022-09-17 01:18:33 +03:00
Andrey Kleshchev 5bb9b6cada SL-18065 Viewer tries to get missing texture endlessly 2022-09-17 00:59:16 +03:00
Ptolemy 71115a7a27 SL-17703: Fix merge 2022-08-31 10:16:24 -07:00
Dave Parks 5c0e201cd6 SL-18065 WIP -- Clamp virtual size of fetched textures. 2022-08-31 11:45:48 -05:00
Dave Parks c9f893b100 SL-18065 WIP -- Adjust max virtual size to keep debug floater readable. Make assert on shutdown less frequent (still not gone, likely race condition). Fix unrelated assertion in reflection probes. 2022-08-31 11:36:00 -05:00
Ptolemy 8eaee1f033 SL-17703: PBR: Fix albedo being in wrong color space, add support for debug default_irradiance.png 2022-08-30 20:35:15 -07:00
Dave Parks 197ac7cc20 Merge remote-tracking branch 'remotes/origin/DRTVWR-563' into DRTVWR-559 2022-08-30 10:46:36 -05:00
Ptolemy e81b149c4a Revert "SL-17703: PBR: Fix missing ORM to use 1,0,0"
If ORM is blank the roughness and metal are multiplied into a default white ORM texture.  This reverts commit 71ae65ae17.
2022-08-29 17:34:49 -07:00
Ptolemy 71ae65ae17 SL-17703: PBR: Fix missing ORM to use 1,0,0 2022-08-29 14:06:48 -07:00
Dave Parks 18b0aa0371 SL-17619 Add support for embedded textures to GLTF importer 2022-06-16 16:16:53 -05:00
Howard Stearns 9d9c2037e1 Merge branch 'DRTVWR-564' of bitbucket.org:lindenlab/viewer into SL-17485 2022-06-13 14:03:04 -07:00
Howard Stearns 91a9665e35 SL-17485 - Make mac compiler happier. 2022-06-13 14:00:13 -07:00
Dave Parks da069765b1 SL-17005 Tweak target VRAM usage and add some log spam to help zero in on good targets. 2022-06-08 16:24:03 -05: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
Dave Parks 5259fa811c SL-17486 Force desired discard level to 0 for high boosted textures (fix for fuzzy terrain textures etc). 2022-06-06 21:12:48 -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
Dave Parks 3e9dcba813 SL-17486 Fix for many texture types failing to load. 2022-05-24 17:03:11 -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
Dave Parks b6841d75c2 SL-17219 WIP - Texture pipeline overhaul 2022-04-15 19:02:07 -05:00
Dave Parks e60024f0af SL-17005 WIP - Use D3D/DXGI to query for available VRAM on Windows 2022-03-29 15:41:00 -05:00
Dave Parks 34e79c8f4e SL-17005 WIP Simplify what feeds texture loading bias to only pay attention to available memory according to OS and GL driver, not (broken) internal accounting (breaks intel GPUs, compatibility pass incoming). 2022-03-11 10:21:08 -06:00
Dave Parks d9a68339d5 SL-16815 and SL-16906 Avoid redundant bumpmap generation, add some assertions around ref counting and (hack) fix crash on shutdown from dangling texture reference (reduced to 1 dangling texture from several hundred, can't find the remaining reference). 2022-02-23 16:51:33 -06:00
Dave Parks 0d6aa3c0fe SL-16815 Remove frame stalls from occlusion queries, bumpmap updates, and querying for available video memory. 2022-02-17 22:52:23 +00:00
Dave Houlton fdc4a81b57 Revert "Merged in euclid-16418 (pull request #846)"
This reverts commit 40fe5277e1, reversing
changes made to af830e5fc5.
2022-02-01 15:49:32 -07:00
Dave Houlton c76f8f7bcc SL-16418 remove duplicated ref() 2022-01-27 17:25:42 -07:00
Dave Houlton 8d0efb54db SL-16418 rename media tex image per-update to avoid contention stall 2022-01-27 17:09:29 -07:00
Runitai Linden 1a440be5e1 SL-16653 Fix for some textures having incorrect texel colors after the first row (and add more paranoia checks on texture data). 2022-01-19 10:35:58 -06:00
Ptolemy bf0643e28a SL-16606: Add profiler category TEXTURE 2022-01-14 11:50:21 -08:00
Dave Houlton cf35d27dfb DRTVWR-546 merge up to 6.5.2 2021-12-15 14:37:18 -07:00
Dave Parks 5e5be92d79 SL-16202 Put Multi-threaded GL behind a feature flag and update featuretable (decruftify settings, compatibility pass). 2021-12-06 15:29:34 +00:00