summaryrefslogtreecommitdiff
path: root/indra
AgeCommit message (Collapse)Author
2024-08-26clean up Lua prefixMnikolenko Productengine
2024-08-24Update test scripts to reference UI.Floater, not standalone Floater.Nat Goodspeed
2024-08-24Fix mac crash on startup due to missing types from enumRye Cogtail
2024-08-24Improve FXAA quality and performance when GL version is greater then 4Rye Cogtail
Adds gather4 support under GLSL 4.0+
2024-08-24Add Contrast Adaptive Sharpening post process effect(#2399)Rye Mutt
2024-08-24Update LLImageJ2C::calcDataSizeJ2C for better 2k image support (#2406)TommyTheTerrible
Adjusted calculations based on dimensions and assumed maximum block size so that higher discards (4-5) of 2048x2048 images can be decoded with aux/alpha. (It should also work for dimensions larger than 2048.) This function will now return a reliable discard 5 data size for unknown dimensions (w and/or h equals 0), which could be used in LLTextureFetch::createRequest to skip the header fetch and go right to a discard 5 decode. Tested on OpenJPEG 2.5 with partial decode support (opj_decoder_set_strict_mode set to false). Should work on KDU fine but might be a good idea to test.
2024-08-23Massage results from UI.popup() for ease of use.Nat Goodspeed
In particular, where the raw leap.request().response call would return {OK_okcancelbuttons=true}, just return the string 'OK' or 'Cancel'. Update existing consumer scripts.
2024-08-23Encapsulate the lazy submodule idiom as util.submoduledir().Nat Goodspeed
2024-08-23Look for lazy UI submodules in a require/UI subdirectory.Nat Goodspeed
This way encourages "UI = require 'UI'; UI.Floater" instead of just "Floater = require 'Floater'". Moreover, now we don't need UI to maintain a list of allowed submodules; that's effected by membership in the subdirectory.
2024-08-23#2388 Texture downrezzing tune up. (#2414)Dave Parks
- Hold onto unreferenced textures for 30 seconds. - Don't downres unless memory is low - Downres when viewer is backgrounded.
2024-08-23Allow UI to have lazily-loaded submodules.Nat Goodspeed
Equip UI with an __index metamethod. When someone references an unknown key/field in UI, require() that module and cache it for future reference. Add util.setmetamethods() as a way to find or create a metatable on a specified table containing specified metamethods. Exercise the new functionality by referencing UI.popup in test_popup.lua.
2024-08-23Add dedicated sun probe shader and remove SSAO and shadow smoothing from ↵Rye Mutt
probe generation passes (#2405) * Add dedicated sun probe shader and remove SSAO and shadow smoothing from probe generation passes (#2398) * Fix usage of removed sunLightNoFragCoordV in shader manager
2024-08-23Merge pull request #2368 from secondlife/andreyk/viewer_2363Vir Linden
viewer#2363 Region Day Offset error with Time of Day
2024-08-22Merge remote-tracking branch 'origin/release/2024.08-DeltaFPS' into developBrad Linden
2024-08-22Merge remote-tracking branch 'origin/release/2024.06-atlasaurus' into ↵Brad Linden
release/2024.08-DeltaFPS
2024-08-22#2397 Sanity clamp haze contribution to avoid NaN like blowouts. (#2402)Dave Parks
2024-08-22Fix for #2385: say, shout and whisper messages from the script should be ↵Mnikolenko Productengine
displayed consistently
2024-08-22secondlife/viewer#2349: Avatar/animesh rendering correctness pass (#2364)cosmic-linden
* secondlife/viewer#2349: Blinn-Phong avatar/animesh rendering optimization/correctness pass * secondlife/viewer#2349: General avatar/animesh rendering optimization/correctness pass
2024-08-22Merge remote-tracking branch 'origin/release/2024.06-atlasaurus' into ↵Brad Linden
release/2024.08-DeltaFPS # Conflicts: # indra/newview/featuretable_mac.txt
2024-08-22Incremented viewer version after release/2024.08-DeltaFPS branch creation ↵Brad Linden
(#2369)
2024-08-22Merge pull request #2396 from secondlife/v-2391cosmic-linden
secondlife/viewer#2391: Remove avatar rigging logging due to load time impact
2024-08-22#2393 BugSplat Crash #1504586: LLRenderTarget::getTexture(483)Alexander Gavriliuk
2024-08-22secondlife/viewer#2391: Remove avatar rigging "callstack" loggingCosmic Linden
2024-08-22Do deprecated texture swizzle on GPU using GL texture swizzling functions ↵Rye Mutt
(#2389) * Use GL texture swizzling instead of scratch buffer for deprecated formats when GL 3.3 is available Fix crash when GL texture compression is enabled * Fix UI font atlas being eligible for texture compression
2024-08-22#2325 WebRTC: p2p voice calling option sometimes becomes disabled after ↵Alexander Gavriliuk
calling another agent back too soon
2024-08-22Remove or suppress left over debug messages in hot paths (#2392)Rye Mutt
2024-08-21mac build fixMnikolenko Productengine
2024-08-21Fix crash on Intel GPUs (or anywhere OpenGL compatibility profile is used). ↵Dave Parks
(#2387)
2024-08-21Bump featuretable versions to fix secondlife/viewer#2345 (#2386)Brad Linden
also fixed mac High entry for RenderMirrors that got missed
2024-08-21Merge branch 'release/luau-scripting' into lua-inventoryMaxim Nikolenko
2024-08-21Add item limit for collectDescendentsIf func; add demo scriptMnikolenko Productengine
2024-08-21Fix formatting and add some more constexprAnsariel
2024-08-21Improve accuracy of texture memory tracking (#2371)Rye Mutt
* Fix alloc_tex_image to account for more missing texture memory Change alloc_tex_image calls to pass internal format to properly account for used image type * Fix scaleDown passing primary format in place of internal format to glTexImage2D * Make texture debug view and texture bias calculation consistent and remove double accounting for render target textures
2024-08-21Improve diagnostic output for Lua atexit() functions.Nat Goodspeed
2024-08-21Suppress ~LuaStackDelta() verification during stack unwinding.Nat Goodspeed
Otherwise, an exception raised in the block containing a LuaStackDelta instance -- that might be caught -- would result in an LL_ERRS() crash. We can't expect a block exited via exception to keep its contract wrt the Lua data stack.
2024-08-20Fix a couple more set_interrupts_counter() calls.Nat Goodspeed
2024-08-20Defend timers.Timer(iterate=True) against long callbacks.Nat Goodspeed
Specifically, defend against a callback that runs so long it suspends at a point after the next timer tick.
2024-08-20Fix for #2237: intermittent Lua data stack overflow.Nat Goodspeed
Use a static unordered_map to allow a function receiving (lua_State* L) to look up the LuaState instance managing that lua_State. We've thought about this from time to time already. LuaState's constructor creates the map entry; its destructor removes it; the new static getParent(lua_State* L) method performs the lookup. Migrate lluau::set_interrupts_counter() and check_interrupts_counter() into LuaState member functions. Add a new mInterrupts counter for them. Importantly, LuaState::check_interrupts_counter(), which is indirectly called by a lua_callbacks().interrupt function, no longer performs any Lua stack operations. Empirically, it seems the Lua engine is capable of interrupting itself at a moment when re-entry confuses it. Change previous lluau::set_interrupts_counter(L, 0) calls to LuaState::getParent(L).set_interrupts_counter(0). Also add LuaStackDelta class, and a lua_checkdelta() helper macro, to verify that the Lua data stack depth on exit from a block differs from the depth on entry by exactly the expected amount. Sprinkle lua_checkdelta() macros in likely places.
2024-08-20Fix TempSet to use type VAR to store mOldValue.Nat Goodspeed
In fact we set mOldValue from mVar, and restore mVar from mOldValue, so the VAR type makes the most sense. The previous way, you'd get actual errors if you tried to use TempSet(pointervar, nullptr): that declared mOldValue to be nullptr_t, which you can't initialize from mVar.
2024-08-20Merge branch 'release/2024.06-atlasaurus' of github.com:secondlife/viewer ↵Roxie Linden
into roxie/webrtc-fix-mac-p2p-hang
2024-08-20removed unnecessary commentRoxie Linden
2024-08-20Add LL::scope_exitNat Goodspeed
2024-08-20Fix hang when incoming p2p or group calls throw up dialog.Roxie Linden
There were changes in atlasaurus that resulted in a hang for incoming p2p and group calls which throw up dialogs. The changes revolved around mutex, coroutines, job queues, and such. The fix was to do any processing that may result in callbacks from the webrtc code in a queued job instead of a coroutine.
2024-08-20#2345 Fix for mirrors not being disabled from previous viewer versions.Jonathan "Geenz" Goodman
2024-08-20viewer#2363 Region Day Offset error with Time of DayAndrey Kleshchev
When we have a 23h day cycle and 23h offset, doing a 24h flip will result in -1h. Flip by day length instead so that 23h-23h will result in 0h. This has a negative side effect of values not being saved exactly as users specified them, so a -1h offset will turn to 4h on next load with a 5h long day. But it is nature of a day to 'loop', so I decided there is no point to translate -1 into 14 or something like that.
2024-08-20Add collectDescendentsIf api for LuaMnikolenko Productengine
2024-08-20Increment viewer version in preparation for 2024.08-d RCBrad Linden
2024-08-20Merge remote-tracking branch 'origin/release/2024.06-atlasaurus' into developBrad Linden
# Conflicts: # autobuild.xml # indra/newview/llvoicewebrtc.cpp
2024-08-20Clean up boost includes and remove compiler warning pragma for unreachable ↵Ansariel Hiller
code in PCH (#2361)
2024-08-20viewer#2338 Don't allow pasting into library from My EnvironmentsAndrey Kleshchev