Skip to content

frontend-utils: Allow switching reqwest back to rustls - #23947

Merged
torokati44 merged 1 commit into
ruffle-rs:masterfrom
torokati44:frontend-utils-tls-backend-feature
Jun 10, 2026
Merged

torokati44 merged 1 commit into
ruffle-rs:masterfrom
torokati44:frontend-utils-tls-backend-feature

Conversation

@torokati44

Copy link
Copy Markdown
Member

Description

This is necessary for the Android app, where reqwest can't use a native TLS backend, because there's no OpenSSL.

Referencing:

Testing

Infrastructure-only stuff.

Checklist

  • I, a human, have self-reviewed this PR and fully understand the changes within.
  • I have made or updated tests where possible.
  • All of my commits are properly scoped, compile successfully, and pass all tests.
  • This PR does not make sense to split up into smaller PRs.
  • An LLM was involved in the authoring of this code.

This is necessary for the Android app, where reqwest can't
use a native TLS backend, because there's no OpenSSL.
@torokati44
torokati44 requested a review from kjarosh June 10, 2026 10:45
@torokati44 torokati44 added A-other Area: Not covered by other area labels T-chore Type: Chore (like updating a dependency, it's gotta be done) labels Jun 10, 2026
@kjarosh

kjarosh commented Jun 10, 2026

Copy link
Copy Markdown
Member

Doesn't native-tls work on Android? Is it not supported or were they any other issues?

@torokati44

Copy link
Copy Markdown
Member Author

I just saw this, it looking for OpenSSL:
https://github.com/ruffle-rs/ruffle-android/actions/runs/27267838836/job/80529358968?pr=762

I also don't see why it couldn't do non-OpenSSL (so actually native) TLS on Android, but apparently it can't. 🤷‍♂️

@torokati44

Copy link
Copy Markdown
Member Author

No mention of anything Android-specific here, and I don't think we want OpenSSL there...

https://github.com/seanmonstar/reqwest#requirements

@kjarosh

kjarosh commented Jun 10, 2026

Copy link
Copy Markdown
Member

I think the native crate might lack support for Android then. :/

@torokati44

Copy link
Copy Markdown
Member Author

Yep:

https://github.com/rust-native-tls/rust-native-tls

Specifically, this crate uses SChannel on Windows (via the schannel crate), Secure Transport on macOS (via the security-framework crate), and OpenSSL (via the openssl crate) on all other platforms.

@torokati44
torokati44 merged commit 1213166 into ruffle-rs:master Jun 10, 2026
25 of 26 checks passed
Hancock33 added a commit to Hancock33/batocera.piboy that referenced this pull request Jun 14, 2026
-------------------------------------------------------------------------------------------
rk3128-blobs.mk ecb4fcbe954edf38b3ae037d5de6d9f5bccf81f4 # Version: Commits on Dec 29, 2025
-------------------------------------------------------------------------------------------
README: Update

Signed-off-by: Joseph Chen <[email protected]>

Change-Id: I40e2222f7e82ac29e471efa2da092c1ab81edcbd,

--------------------------------------------------------------------------------------------------------
batocera-emulationstation.mk 0b3bb7f4cd2813d0edcaded07f21c84b218990e7 # Version: Commits on Jun 11, 2026
--------------------------------------------------------------------------------------------------------
Merge pull request #2157 from Tartifless/master

Add FPS limit option in developer settings,

------------------------------------------------------------------------------------------------
batocera-es-piboy.mk 0b3bb7f4cd2813d0edcaded07f21c84b218990e7 # Version: Commits on Jun 11, 2026
------------------------------------------------------------------------------------------------
Merge pull request #2157 from Tartifless/master

Add FPS limit option in developer settings,

-----------------------------------------------------------------------------------
cemu.mk b517fbc147af5379da32b1db7cd68e6c4ead30d8 # Version: Commits on Jun 11, 2026
-----------------------------------------------------------------------------------
build: Make CMake ask for fmt 12.1 instead of 9 (#1953),

------------------------------------------------------------------------------------------
duckstation.mk ba08a6f70c0938f335638c44260eec668e0d6f6f # Version: Commits on Jun 11, 2026
------------------------------------------------------------------------------------------
Qt: Hide FSUI theme and font settings from game properties (#3751)

Cannot be changed per game.,

-----------------------------------------------------------------------------------
eden.mk 5219b9f3d2b92802352dda16273d520abbe179b4 # Version: Commits on Jun 10, 2026
-----------------------------------------------------------------------------------
[deps] update sirit 1.0.4 -&gt; 1.0.5 (#4079)

--------------------------------------------------------------------------------------
openmsx.mk 77edea553f4d0ba06f007da2d48026682bae9e77 # Version: Commits on Jun 11, 2026
--------------------------------------------------------------------------------------
Updated ROMDB with some Coleco Translations and a few new additions,

-------------------------------------------------------------------------------------
ppsspp.mk 9c8317f661cb71512404c0656b935b309a0d2020 # Version: Commits on Jun 11, 2026
-------------------------------------------------------------------------------------
Merge pull request #21815 from fp64/vmuldiv-bitwise

Implement (hopefully) bitwise-exact vmul/vdiv,

------------------------------------------------------------------------------------
rpcs3.mk 1492d647f411b04d6a78d4aed9d32f5c55b1f455 # Version: Commits on Jun 11, 2026
------------------------------------------------------------------------------------
SaveStates: Fix lv2_timer serialization,

---------------------------------------------------------------------------------------
touchhle.mk fc5b56b9677e8746652eb02b437ba87a2107bca2 # Version: Commits on Jun 10, 2026
---------------------------------------------------------------------------------------
Default options for Palm Heroes

Change-Id: I31ca5337e1683fc03553f62623cbbea532557a79,

-------------------------------------------------
vice.mk r46144 # Version: Commits on Jun 11, 2026
-------------------------------------------------
null

-------------------------------------------------------------------------------------------
xenia-canary.mk 2027f50b6e59adb251309c9b686edca08ec7d216 # Version: Commits on Jan 11, 2026
-------------------------------------------------------------------------------------------
[Xam/User_profile] - Add missing filenames & device types

- Add missing XTileType filenames

- Add missing device types

- Add XamLoaderLaunchTitle/Ex Flags

- Add ExThreadCreate flags and logging (from nukernel)

- Add more logging to user_module

- Add missing XamReadTileEx param,

-----------------------------------------------------------------------------------------
xenia-edge.mk 03c37a76b39a9ddb2f125a67a3c16ba70f19f847 # Version: Commits on Jun 11, 2026
-----------------------------------------------------------------------------------------
[Vulkan] Sample auto-LOD cube fetches with implicit LOD + bias,

-----------------------------------------------------------------------------------
ymir.mk fea00d426bf2fa975ea455ffb6da834d0c8c8ba3 # Version: Commits on Jun 11, 2026
-----------------------------------------------------------------------------------
docs: Update CHANGELOG with newly-added SH2 overclocking setting,

---------------------------------------------------------------
ruffle.mk nightly-2026-06-11 # Version: Commits on Jun 11, 2026
---------------------------------------------------------------
## What's Changed

* chore: Bump shell-quote from 1.8.3 to 1.8.4 in /web by @dependabot[bot] in ruffle-rs/ruffle#23941

* frontend-utils: Allow switching reqwest back to rustls by @torokati44 in ruffle-rs/ruffle#23947

* avm1: Remove \Target not found\ trace by @kjarosh in ruffle-rs/ruffle#23946

**Full Changelog**: ruffle-rs/ruffle@nightly-2026-06-10...nightly-2026-06-11,

------------------------------------------------------------------------------------------
devilutionx.mk 421bb161d3b2019e593be8b62ed91d6a6a44bf6e # Version: Commits on Jun 11, 2026
------------------------------------------------------------------------------------------
Fix Emscripten build, with support for mods and Hellfire (#8583),

-------------------------------------------------------------------------------------------
jazz2-native.mk 1ddb8d451d48be8e31f205efc42efd4a3f799a0f # Version: Commits on Jun 11, 2026
-------------------------------------------------------------------------------------------
Player fur colorization,

--------------------------------------------------------------------------------------
omf2097.mk fda29f2c81db718d0d6479aa9d2a729ccb3818e9 # Version: Commits on Jun 11, 2026
--------------------------------------------------------------------------------------
Merge pull request #1398 from omf2097/formats-cleanups2

formats: Field renames, enums, cleanups,

------------------------------------------------
d7vk.mk v1.11 # Version: Commits on Jun 11, 2026
------------------------------------------------
This release is somewhat uneventful feature wise, but rolls out several additional performance improvements to our not so long ago added CPU ProcessVertices implementation, and also includes the usual amount of bugfixes and game specific workarounds, as per the below changelog. These will affect a few prolific titles, but I'll save the feature highlight for some of the more obscure ones. This one in particular goes to the 🐸s.

| Fogger (1997) | Frogger 2: Swampy's Revenge  |

|-------|---------|

|  <img width=\640\ height=\480\ alt=\Frogger\ src=\https://github.com/user-attachments/assets/1d8c67a1-6bc6-4634-bf8d-d4d2e8de6384\ /> | <img width=\640\ height=\480\ alt=\Frogger2\ src=\https://github.com/user-attachments/assets/40ec4168-0b1d-4493-8123-c8fa6ca86c44\ /> |

## Parallel point lights

We've had this rare type of lights on our radar for quite some time, although D7VK outright rejected their creation before v1.11. They were only ever supported by D3D6 and earlier D3D APIs and their use was limited to only two known titles: _The Sims_ and _Hidden & Dangerous_. As such, handling them wasn't exactly a priority. In this release we've added a fairly accurate emulation path which is compatible with both our CPU-driven vertex lighting and DXVK's fixed function lighting (done with shaders).

The difference in both games is hardly noticeable, as these types of lights really play second fiddle to the more common directional lights, and are never used by themselves. On early graphics hardware they were only ever useful as a computationally cheaper alternative to point lights, but such concerns are unfounded on any

easonably modern\ GPUs of the early 21st century.

The only exclusive use of parallel point lights we are aware of can be found in the DX6.1 SDK D3D light sample. [Here's a video of how it looks now with D7VK](https://drive.proton.me/urls/FJGHGXQKT4#jtujzxPuGjvv), in case you are haunted by an academic curiosity.

Fixes/additions:

- Added support for D3DLIGHT_PARALLELPOINT lights, by emulating them with maximum range and no attenuation point lights. This has had a minor visual impact on _The Sims_ and _Hidden & Dangerous_. Other, yet unaccounted for, early D3D titles may be positively impacted.

- Pulled in the latest upstream DXVK code, including a fix which drastically improves the compilation speed of the fixed function shaders. There's a global positive impact, and one of a greater degree in particular on HW T&L D3D7 games.

- Properly handled a rare case of cross-API texture interface use, which has fixed rendering in _Grandia II_ (thanks to @CkNoSFeRaTU for spotting the problem).

- Added a workaround for front buffer emulation which has fixed missing load screens/backgrounds in _Praetorians_ and _Empire of the Ants_.

- Fixed a bug that caused missing texture transparency on Nvidia cards in _Frogger (1997)_.

- Worked around color key precision issues in _Frogger 2: Swampy's Revenge_.

- Fixed various v1.10 regressions and missing validations caused by our now reduced use of proxied DDraw objects.

- Added a workaround to improve draw performance in _Star Trek: Armada_.

- Fixed black screen during intro video playback in _Age of Wonders II_.

- Improved device creation speed, positively affecting games which spam multiple devices on initialization to test for hardware support (e.g. _Empire Earth_).

- Improved the robustness of our D3D3 implementation.

- Added several tweaks to reduce the CPU usage of (CPU) ProcessVertices calls. While generally unimportant, these will improve CPU bottlenecks in games and mods which abuse SWVP calculations in conjuction with draws.

- Fixed an oversight which prevented proper texturing in GoldSrc titles such as (the original) _Half-Life_ (thanks to @CkNoSFeRaTU). That being said, please **don't** use D3D6 with any GoldSrc games, as it performs quite poorly when compared to OpenGL.

- Added several workarounds for (the original) _The Sims_ games & DLCs, with the caveat that there are still a few known problems with some versions of the game. These have been, by far, the most horrendous things I've had \the pleasure\ to fix/work around so far.

- Fixed several global handle sharing cases, which are specific to early D3D APIs and DDraw. A _GTA 2_ bug should now resolve itself once the underlying problem is also addressed in Wine's DDraw implementation.

For the next release we've taken on the rather daunting challenge of both squeezing the most performance possible out of our CPU ProcessVertices implementation by throwing some SSE2 at it (this one's on @CkNoSFeRaTU), and to finally, and hopefully permanently, properly synchronize DDraw's swapchain flipping with DXVK's D3D9 backend swapchain flipping. See you all on the next one, with hopefully some good news on both fronts.,

----------------------------------------------------------------------------------------
retroarch.mk b6ab51685e2214b54546134a65ae577978f2be9c # Version: Commits on Jun 11, 2026
----------------------------------------------------------------------------------------
Fetch translations from Crowdin,

------------------------------------------------------------------------------------------
openbor7530.mk 5087eded837666cf459514d4ef8740161899430a # Version: Commits on Jun 11, 2026
------------------------------------------------------------------------------------------
tools/borpak: prepare PAK tool for large-file support

Clean up archive entry naming and replace ad-hoc integer fields with explicit PAK field types. Validate table offsets, entry sizes, file data ranges, and extraction paths before writing files.

Also fix unterminated archive names, checked writes, scandir cleanup paths, and path traversal handling. This separates current 32-bit on-disk fields from local size and offset handling as groundwork for future large PAK file support.,

-----------------------------------------------------------------------------------------
libdmdutil.mk 5879c321e75c2ca3c5dd9cde5d7c49f0075d1f16 # Version: Commits on Jun 10, 2026
-----------------------------------------------------------------------------------------
deps: bump libzedmd and libvni (and libframeutil) (#115),

-------------------------------------------------------------------------------------------
libframeutil.mk 28f2bae0dabcbd5c599e6f62211f009e078c1f96 # Version: Commits on Jun 10, 2026
-------------------------------------------------------------------------------------------
Refactor CalcBrightness for improved brightness calculation

Updated CalcBrightness function for better brightness calculation.,

-------------------------------------------------------------------------------------
libvni.mk 7258e2fa0d086e1224d6510d44a61879e6b344b1 # Version: Commits on Jun 10, 2026
-------------------------------------------------------------------------------------
deps: bump libframeutil to 28f2bae0dabcbd5c599e6f62211f009e078c1f96 (@PastorL69),

---------------------------------------------------------------------------------------
libzedmd.mk 5c44646f2af4b1419b4cdcaed3a2799ca9439221 # Version: Commits on Jun 10, 2026
---------------------------------------------------------------------------------------
deps: bump libframeutil to 28f2bae0dabcbd5c599e6f62211f009e078c1f96 (@PastorL69),

---------------------------------------------------------------------------------------
vpinball.mk 201eb592587cce18e94b74f2571cce02419541fe # Version: Commits on Jun 11, 2026
---------------------------------------------------------------------------------------
pup: fix use-after-free of queued triggers on unload (fixes #3499)

Releasing a PinUpPlayer.PinDisplay script proxy did a full unload, freeing

triggers whose Invoke was still queued on the main thread; tables that

recreate the proxy crashed in PUPTrigger::Invoke during load. The proxy

destructor no longer unloads (game end / CloseApp handle teardown), and

Unload now flushes pending callbacks while triggers are still alive.,

----------------------------------------------------------------------------------------
doomretro.mk 79859ef304305e63882432e7b4aad70f0fc8dd18 # Version: Commits on Jun 11, 2026
----------------------------------------------------------------------------------------
Update releasenotes.md,

--------------------------------------------------------------------------------------
yquake2.mk 7aa72dfe15ed594fa5b0aa2e02eddd3c747cd088 # Version: Commits on Jun 10, 2026
--------------------------------------------------------------------------------------
game: validate landmark logic

Validation possible candidates of landing logic.

Related to:

* yquake2/yquake2remaster#69,

--------------------------------------------------------------------------------------------------
libretro-beetle-psx.mk bbdaadb16fb8c69ba118907baf88347d0b70a3de # Version: Commits on Jun 11, 2026
--------------------------------------------------------------------------------------------------
lightrec: re-validate overwritten blocks from compiled code

Compiled store opcodes invalidate the code LUT inline, clearing only

the entry that corresponds to the written word. A cached block whose

entry point precedes the written word keeps a live LUT entry, so the

staleness check never re-runs for it and it keeps executing stale

opcodes. Games that patch instructions inside an already-cached

function (for example storing a new immediate into an instruction of

a runtime-parameterised routine) render incorrectly forever under the

recompiler, while the interpreter - which fetches from memory - stays

correct.

Track, in a per-RAM-word bitmap, which words lie inside a cached block

that is installed in the code LUT. Compiled stores test the target

word's bit on their hot path (a few ALU ops, one 32-bit load and one

normally-not-taken branch; measured at performance parity). When the

bit is set, the block exits early with the new LIGHTREC_EXIT_CODE_INV

code; lightrec_execute() then re-validates the blocks overlapping the

written address and resumes execution at the store opcode.

The re-validation walk operates on whole 4 KiB windows: it clears the

entry-point LUT slot of every block overlapping the window, then

clears the window's bits. Bulk overwrites of cached code (such as an

executable load) therefore take the slow path once per page rather

than once per word, and stores to data words that merely share a page

with code never take it at all. The bits are set again whenever a

block is (re-)installed in the LUT, which re-arms the check for code

that is patched repeatedly.

Stores in branch delay slots skip the check, as the block cannot be

exited from a delay slot; this leaves a small theoretical window for

delay-slot code patching.,

----------------------------------------------------------------------------------------------
libretro-brimir.mk fe34078faa151ceef266a3f9ae22d908a48d92cd # Version: Commits on Jun 11, 2026
----------------------------------------------------------------------------------------------
patch: @@ -189,4 +189,15 @@ jobs:

             brimir-${{ github.ref_name }}-linux-x64.tar.gz

             brimir-${{ github.ref_name }}-linux-arm64.tar.gz

             brimir-${{ github.ref_name }}-macos-arm64.tar.gz

-          generate_release_notes: true

+           |

+            Brimir is a Sega Saturn emulation core for libretro, built on Ymir's cycle-accurate hardware layer.

+

+            ### v0.4.2

+

+            **SH2 decode optimization** — Removed `DecodedArgs` pre-decode table (~256KB saved); instruction handlers now decode opcode arguments directly via `DECODE_NM`/`DECODE_D_S` macros, matching Ymir upstream.

+

+            **Cartridge RAM persistence** — Save/load `.cart` files for all DRAM cartridge types (8 Mbit, 32 Mbit, 48 Mbit) using Ymir's `DumpRAM`/`LoadRAM` API. Supports games like KoF '95, Vampire Savior, and other RAM-expansion titles.

+

+            **DIV1 microoptimization** — Applied upstream performance tweaks to DIV1 instruction.

+

+            **Infrastructure** — 4 hardware-layer files synced verbatim from Ymir HEAD. SH1 decode unchanged. NEON intrinsics preserved.

-----------------------------------------------------------------------------------------------------
libretro-mame2003-plus.mk 2cca4441706b952c2eaf8264713b53fd5452e0bd # Version: Commits on Jun 11, 2026
-----------------------------------------------------------------------------------------------------
Update patch,

---------------------------------------------------------------------------------------------
libretro-opera.mk 67feb48bfd1acfc460787aa5992dbabdda5af1f2 # Version: Commits on Jun 10, 2026
---------------------------------------------------------------------------------------------
arm: set ARM60 N-cycle timing to two S-cycles

- Change NCYCLE from 4 to 2 for uncached ARM60 timing.

- Document the timing rationale and source references.,

----------------------------------------------------------------------------------------------------
libretro-parallel-n64.mk b9ba0cbbe38810fc33b2b502e1086403b9979944 # Version: Commits on Jun 11, 2026
----------------------------------------------------------------------------------------------------
angrylion-hle: segment-translate the S2DEX background imagePtr

The uObjBg imagePtr was consumed as a physical address (top byte

masked off). Zelda's pre-rendered rooms pass segment-relative

pointers -- Ocarina of Time's Room_DrawImage fills imagePtr with a

segment 3 address -- which the S2DEX microcode resolves through the

F3DEX2 segment table before emitting SETTIMG, so the HLE renderer

sourced every background strip from a bogus low-RDRAM address and

the room images came out as garbage (visible in any OoT pre-rendered

interior, both the fixed-camera gSPBgRectCopy path and the C-up

first-person gSPBgRect1Cyc path).

Resolve imagePtr through the walker's segment table in both

background renderers, keeping the full table-base sum so the emitted

SETTIMG words match the microcode byte-exactly (the table holds

KSEG0 bases; the RDP ignores the upper bits).

OoT Link's house interior (S2DEX 2.05 'Safe'): 146704 -> 0/153600

differing pixels in copy mode and 146770 -> 0/153600 in the C-up

1-cycle mode against cxd4. MM debug title (S2DEX2 2.08 backgrounds,

segment 0 pointers), MM ranch, MM smithy, and the OoT title attract

all remain at 0 differing pixels.,

----------------------------------------------------------------------------------------------
libretro-ppsspp.mk 9c8317f661cb71512404c0656b935b309a0d2020 # Version: Commits on Jun 11, 2026
----------------------------------------------------------------------------------------------
Merge pull request #21815 from fp64/vmuldiv-bitwise

Implement (hopefully) bitwise-exact vmul/vdiv,

----------------------------------------------------------------------------------------------
libretro-prboom.mk 36ae09e358a4e17ca44aab3e2fa9c7be61773799 # Version: Commits on Jun 11, 2026
----------------------------------------------------------------------------------------------
p_zacs, u_zmapinfo: resolve LANGUAGE strings for ACS PrintLocalized

PCD_PRINTLOCALIZED treated its argument as literal text and printed it

verbatim.  In ACS the argument is a LANGUAGE key: GDCC-compiled content

builds a key at run time, then reads the localized value back through

PrintLocalized to drive data tables it cannot embed directly.  Without

the lookup those tables come back empty.

Resolve the key through the LANGUAGE table, printing the value when the

key is known and falling back to the key name on a miss (matching the

unknown-key behaviour elsewhere).  Three supporting fixes were needed:

- The LANGUAGE parser read only the first LANGUAGE lump.  A pk3 names

  every root-level \language.*\ member LANGUAGE, so a mod's per-topic

  tables arrive as several same-named lumps; walk them all and let later

  lumps win on duplicate keys.  Also accept quoted-string keys, used for

  alias tables.

- Dynamic strings (PCD_SAVESTRING) lived in the active module's STRL

  space.  GDCC builds a string in one module and consumes it inside a

  cross-module call where another module is active, so the handle was

  lost across the boundary.  Move dynamic strings to one global table,

  tagged so zacs_string can tell a dynamic handle from a static index.

- SAVESTRING now clears the print buffer after capturing, matching

  GDCC's model of emitting SaveString and continuing to print without a

  fresh BeginPrint; consecutive saves no longer accumulate.

Vanilla DOOM output is unchanged (no LANGUAGE VNS keys); heretic, hexen

and pk3 content still load and run.,

--------------------------------------------------------------------------------------------------------
libretro-superflappybirds.mk 2a8459425151953d866489acd929460401219193 # Version: Commits on Jun 11, 2026
--------------------------------------------------------------------------------------------------------
Added workflow to build the source for all raspberry pi variants, Mac silicone, Linux x86_64, and Windows x86_64.,

--------------------------------------------------------------------------------------------
slang-shaders.mk a2b6674d8300ef1550d1b00d8db0a4e43875cfed # Version: Commits on Jun 11, 2026
--------------------------------------------------------------------------------------------
Update koko-aio (#921),
Hancock33 added a commit to Hancock33/batocera.piboy that referenced this pull request Jun 14, 2026
-----------------------------------------------------------------------------------
cemu.mk fe70fdcfe5ced5a4032b7c4561f7cad6f011314b # Version: Commits on Jun 13, 2026
-----------------------------------------------------------------------------------
debugger: Don't clear register views when continuing to run code,

------------------------------------------------------------------------------------------
duckstation.mk cfde5bf5c3418d3ae4be566dc21dca467da1c5b5 # Version: Commits on Jun 07, 2026
------------------------------------------------------------------------------------------
Achievements: Move achievement pinning to database,

--------------------------------------------------------------------------------------
openmsx.mk 3a40a511c97cbf42f86aa90394a4fe07ad455cd3 # Version: Commits on Jun 13, 2026
--------------------------------------------------------------------------------------
corrections and additions to the romdb,

----------------------------------------------------
pcsx2.mk v2.7.416 # Version: Commits on Jun 13, 2026
----------------------------------------------------
- [Misc: clean up COM code](PCSX2/pcsx2#14562)

,

-------------------------------------------------------------------------------------
ppsspp.mk 14dc5a51560628581c023235e9d35ec28fb14b6a # Version: Commits on Jun 14, 2026
-------------------------------------------------------------------------------------
Merge pull request #21825 from hrydgard/ridge-racer-sprite

Fix the ugly line on Ridge Racer lens flares,

------------------------------------------------------------------------------------
rpcs3.mk 4fed5e7b88d78c03359009377b740a3c826505a7 # Version: Commits on Jun 14, 2026
------------------------------------------------------------------------------------
Fix iso integrity log message,

-----------------------------------------------------------------------------------
ymir.mk bca07409fdd89d5e136356a063da71d9874d3424 # Version: Commits on Jun 13, 2026
-----------------------------------------------------------------------------------
feat(sys): Use GCD to ensure SH2 overclocking doesnt introduce slight clock errors to other components,

-------------------------------------------------------------------------------------
ikemen.mk c42967d13e5b229f7dcf9450f471fd2a15d5858f # Version: Commits on Jun 13, 2026
-------------------------------------------------------------------------------------
Merge pull request #3705 from SuperFromND/bgdef-modelrotate

feat: `modelrotate` for 3D BGDefs,

---------------------------------------------------
ruffle.mk v0.3.0 # Version: Commits on Jun 14, 2026
---------------------------------------------------
## What's Changed

* avm2: Fixes to Error's prototype by @Lord-McSweeney in ruffle-rs/ruffle#23719

* aur: Update maintainers for ruffle-nightly-bin by @kjarosh in ruffle-rs/ruffle#23727

* Add testutils CLI by @Dinnerbone in ruffle-rs/ruffle#23677

* ci: Use correct npm dist-tag for nightly and stable releases by @kjarosh in ruffle-rs/ruffle#23728

* desktop: Add Rust stack trace to panic reports by @kjarosh in ruffle-rs/ruffle#23714

* avm2: Fix new Video(0, 0) to use default size by @1bugproof in ruffle-rs/ruffle#23708

* avm2: Stop assuming Object is an enum by @SuchAFuriousDeath in ruffle-rs/ruffle#23725

* Enable jpegxr on Linux Nightlies by @Fancy2209 in ruffle-rs/ruffle#23741

* avm1: Fix behavior of `Sound` ownership by @ChrisCPI in ruffle-rs/ruffle#23733

* chore: Bump the npm-minor group in /web with 7 updates by @dependabot[bot] in ruffle-rs/ruffle#23748

* chore: Bump enumset to 1.1.13 by @torokati44 in ruffle-rs/ruffle#23753

* chore: Bump cssnano to 8.0.1 and cssnano-preset-advanced to 8.0.1 in /web by @torokati44 in ruffle-rs/ruffle#23752

* chore: Run `npm audit fix` in web/ by @torokati44 in ruffle-rs/ruffle#23742

* video/vp6: Init nihav decoder with encoded size, not display size by @SuchAFuriousDeath in ruffle-rs/ruffle#23665

* web/audio: Pin AudioContext to 44.1 kHz by @SuchAFuriousDeath in ruffle-rs/ruffle#23701

* web: Fix MVP wasm build by explicitly disabling post-MVP features by @SuchAFuriousDeath in ruffle-rs/ruffle#23756

* avm2: Set dobj as transformed_by_script on transform `colorTransform` and `matrix` setters by @ChrisCPI in ruffle-rs/ruffle#23759

* avm2: Return ArgumentError instead of panicking on invalid ShaderJob target by @SuchAFuriousDeath in ruffle-rs/ruffle#23763

* chore: Migrate to current Node.js 26 from 25 for testing by @torokati44 in ruffle-rs/ruffle#23661

* avm2: Print full error details when logging caught error by @Lord-McSweeney in ruffle-rs/ruffle#23726

* avm2: Remove mostly unused `crate::avm2::string` by @Lord-McSweeney in ruffle-rs/ruffle#23773

* wstr: Remove unsafe usage from str_eq by @kjarosh in ruffle-rs/ruffle#23774

* desktop: Remove fontconfig from Windows and add fontconfig-dlopen  by @kjarosh in ruffle-rs/ruffle#23768

* chore: Bump nihav-vp6 to latest git master by @torokati44 in ruffle-rs/ruffle#23765

* chore: Bump eslint-plugin-jsdoc from 62.9.0 to 63.0.0 in /web by @dependabot[bot] in ruffle-rs/ruffle#23781

* chore: Bump the npm-minor group across 1 directory with 7 updates by @dependabot[bot] in ruffle-rs/ruffle#23779

* chore: Fix a bunch of typos (mostly in comments) by @torokati44 in ruffle-rs/ruffle#23782

* chore: Bump qs and express in /web by @dependabot[bot] in ruffle-rs/ruffle#23784

* avm2: Fix stack trace for context3DCreated event handler by @Lord-McSweeney in ruffle-rs/ruffle#23745

* avm2: Verify that lazy namespace is actually a Namespace in the verifier by @Lord-McSweeney in ruffle-rs/ruffle#23777

* tests: Begin adding test coverage for signatures of flash.events classes by @Lord-McSweeney in ruffle-rs/ruffle#23786

* ci: Generate AVM2 report only for nightlies by @kjarosh in ruffle-rs/ruffle#23787

* avm1: Clear stack only between frames by @kjarosh in ruffle-rs/ruffle#23795

* avm1: Introduce AVM1 playerglobal by @Dinnerbone in ruffle-rs/ruffle#23730

* core: Fix movie clip looping by @kjarosh in ruffle-rs/ruffle#23802

* tests: Add --skip-no-player to testutils execute by @kjarosh in ruffle-rs/ruffle#23805

* tests: Trace warnings if enabled when executing tests by @kjarosh in ruffle-rs/ruffle#23804

* avm1: Do not trace an error on with(undefined)/with(null) by @kjarosh in ruffle-rs/ruffle#23809

* core: Normalize \blank\ target to \_blank\ in getURL/navigateToURL  by @SuchAFuriousDeath in ruffle-rs/ruffle#23792

* avm1: Remove magic properties and this from SWF4 by @kjarosh in ruffle-rs/ruffle#23806

* avm2: Implement a number of missing `flash.events` classes by @Lord-McSweeney in ruffle-rs/ruffle#23812

* tests: Use FP's output in avm2/graphics_draw_triangles by @kjarosh in ruffle-rs/ruffle#23818

* chore: Bump josStorer/get-current-time from 2.1.2 to 2.1.3 by @dependabot[bot] in ruffle-rs/ruffle#23820

* chore: Bump the npm-minor group in /web with 2 updates by @dependabot[bot] in ruffle-rs/ruffle#23822

* chore: Bump the cargo-minor group with 3 updates by @dependabot[bot] in ruffle-rs/ruffle#23823

* chore: Bump webdriverio package family to 9.27.2 in web/ by @torokati44 in ruffle-rs/ruffle#23828

* avm2: More fixes to signatures of `flash.events` classes by @Lord-McSweeney in ruffle-rs/ruffle#23833

* avm1: Support property syntax in delete2 by @kjarosh in ruffle-rs/ruffle#23834

* 🤖 core: Move flash.text.engine TextLine onto its own DisplayObject by @doctorpangloss in ruffle-rs/ruffle#23817

* core: Extract run_file_dialog helper to reduce boilerplate in file dialog loaders by @SuchAFuriousDeath in ruffle-rs/ruffle#23831

* core/render: Add support for loading JPEGXR images by @ChrisCPI in ruffle-rs/ruffle#23789

* tests: Add asc compiler for compiling AVM2 tests by @kjarosh in ruffle-rs/ruffle#23794

* chore: Bump tmp from 0.2.5 to 0.2.7 in /web by @dependabot[bot] in ruffle-rs/ruffle#23843

* refactor: Enum-map related improvements by @SuchAFuriousDeath in ruffle-rs/ruffle#23846

* wgpu: Yeet the copy_srgb shader and pipeline by @SuchAFuriousDeath in ruffle-rs/ruffle#23827

* tests: Add a failing visual test for scale_rotation_cache by @torokati44 in ruffle-rs/ruffle#23796

* avm2: Minor performance improvements by @Lord-McSweeney in ruffle-rs/ruffle#23840

* core: Include `ruffle_render/jpegxr` in `jpegxr` feature by @ChrisCPI in ruffle-rs/ruffle#23852

* chore: Clippy beta fixes by @danielhjacobs in ruffle-rs/ruffle#23762

* ci: Enable fontconfig-dlopen in the macOS Rust tester job by @torokati44 in ruffle-rs/ruffle#23855

* core: Make loaded image MovieClips work the way SWF >= 5 movies do wrt. scale and rotation caching by @torokati44 in ruffle-rs/ruffle#23838

* avm2: Refactor draw_triangles_internal by @SuchAFuriousDeath in ruffle-rs/ruffle#23761

* core: Rework infrastructure around the FileDialogResult trait by @SuchAFuriousDeath in ruffle-rs/ruffle#23844

* text: Prevent measuring text twice during layout by @kjarosh in ruffle-rs/ruffle#23862

* core: Simplify code in MovieClip.event_dispatch by @kjarosh in ruffle-rs/ruffle#23867

* swf: Add support for PlaceObject/allEventFlags by @kjarosh in ruffle-rs/ruffle#23868

* wstr: Implement Pattern for owned [u8; N] and [u16; N] arrays by @SuchAFuriousDeath in ruffle-rs/ruffle#23858

* ci: Don't enable fontconfig-dlopen in the macOS Rust tester job by @torokati44 in ruffle-rs/ruffle#23873

* ci: Enable full LTO for releases by @kjarosh in ruffle-rs/ruffle#23863

* web: Polyfill document.embeds to return ruffle-embeds too by @danielhjacobs in ruffle-rs/ruffle#22449

* web: Support named access on document.embeds by @danielhjacobs in ruffle-rs/ruffle#23878

* core: Add MultiFileDialogResult and display_file_open_dialog_multiple by @SuchAFuriousDeath in ruffle-rs/ruffle#23866

* avm2: Add type enum for error 2006 by @ChrisCPI in ruffle-rs/ruffle#23883

* chore: Bump the npm-minor group in /web with 11 updates by @dependabot[bot] in ruffle-rs/ruffle#23885

* chore: Bump zbus, zvariant, toml crates by @torokati44 in ruffle-rs/ruffle#23887

* chore: Bump the cargo-minor group across 1 directory with 6 updates by @dependabot[bot] in ruffle-rs/ruffle#23886

* chore: Cargo.lock maintenance by @torokati44 in ruffle-rs/ruffle#23888

* core: Do not dispatch clip events not present in allEventFlags by @kjarosh in ruffle-rs/ruffle#23869

* Fix panic on writeback from empty CPU dirty region (prevalent in Earn to Die) by @n-raine in ruffle-rs/ruffle#23898

* avm2: Implement most of the version gating for `flash.events` classes by @Lord-McSweeney in ruffle-rs/ruffle#23836

* avm2: More minor crossbridge performance improvements by @Lord-McSweeney in ruffle-rs/ruffle#23849

* tests: add `known_failure` support to audio assertions by @moulins in ruffle-rs/ruffle#23861

* avm2: Fix setProgramConstantsFromByteArray implementation by @SuchAFuriousDeath in ruffle-rs/ruffle#23901

* frontend-utils: Use native TLS instead of rustls by @kjarosh in ruffle-rs/ruffle#23894

* chore: Bump openssl from 0.10.73 to 0.10.80 by @dependabot[bot] in ruffle-rs/ruffle#23902

* chore: Additional Rust dependency version bumps by @torokati44 in ruffle-rs/ruffle#23903

* avm1: Match Flash broadcaster prototype enumeration order by @SuchAFuriousDeath in ruffle-rs/ruffle#23892

* avm1: Stub several classes and properties by @SuchAFuriousDeath in ruffle-rs/ruffle#23899

* avm1: Define `constructor` as own property on system class objects by @SuchAFuriousDeath in ruffle-rs/ruffle#23893

* avm2: Add a field to ops instead of adding separate integral variants by @Lord-McSweeney in ruffle-rs/ruffle#23923

* chore: Bump the npm-minor group in /web with 6 updates by @dependabot[bot] in ruffle-rs/ruffle#23925

* avm1: Xmlsocket connect null fix by @SuchAFuriousDeath in ruffle-rs/ruffle#23931

* Slice logic cleanup, take 2 by @moulins in ruffle-rs/ruffle#23676

* core: Make use of  `istr!` macro in several places by @SuchAFuriousDeath in ruffle-rs/ruffle#23935

* core: Remove unnecessary `dyn` usage by @SuchAFuriousDeath in ruffle-rs/ruffle#23936

* core: Use __jcvt() intrinsic on AArch64 for f64→i32 conversion by @SuchAFuriousDeath in ruffle-rs/ruffle#23937

* chore: Bump shell-quote from 1.8.3 to 1.8.4 in /web by @dependabot[bot] in ruffle-rs/ruffle#23941

* frontend-utils: Allow switching reqwest back to rustls by @torokati44 in ruffle-rs/ruffle#23947

* avm1: Remove \Target not found\ trace by @kjarosh in ruffle-rs/ruffle#23946

* avm2: Fix serializing invalid Date objects by @Lord-McSweeney in ruffle-rs/ruffle#23951

* swf: Seek to glyph shape offsets when reading DefineFont2/3 by @kjarosh in ruffle-rs/ruffle#23949

* + libssl-dev, openssl-devel by @sombraguerrero in ruffle-rs/ruffle#23953

* avm1: Support SWF4 target paths properly by @kjarosh in ruffle-rs/ruffle#23948

* chore: Bump WebdriverIO to 9.28.0 in web/ by @torokati44 in ruffle-rs/ruffle#23954

* swf: Fix underflow on keyPress clip action without key code by @kjarosh in ruffle-rs/ruffle#23958

* swf: Fix overflow while reading convolution filter by @kjarosh in ruffle-rs/ruffle#23961

* swf: Fix underflow/OOM errors when decompressing by @kjarosh in ruffle-rs/ruffle#23962

* core: Add AvmString::split_dependent by @SuchAFuriousDeath in ruffle-rs/ruffle#23955

* swf: Fix potential OOM in DefineSceneAndFrameLabelData by @kjarosh in ruffle-rs/ruffle#23960

* avm1: Fix SetTarget2 movie clip selection by @kjarosh in ruffle-rs/ruffle#23964

* chore: Update translations from Crowdin by @kjarosh in ruffle-rs/ruffle#23967

* avm1: Handle edge values in setProperty() by @kjarosh in ruffle-rs/ruffle#23966

* avm2: Simplify AMF serialization logic by @Lord-McSweeney in ruffle-rs/ruffle#23956

* avm2: Remove redundant method `PropertyMap::insert_with_namespace` by @Lord-McSweeney in ruffle-rs/ruffle#23969

* chore: Bump esbuild from 0.28.0 to 0.28.1 in /web by @dependabot[bot] in ruffle-rs/ruffle#23968

* chore: Update translations from Crowdin by @kjarosh in ruffle-rs/ruffle#23970

* refactor: Use api-report as dependency and move stub-report to tools/ by @kjarosh in ruffle-rs/ruffle#23922

* avm1/avm2: Add AMF NetConnection Array serialization known failures by @danielhjacobs in ruffle-rs/ruffle#23957

* tests: Add avm1/set_target_2_swf5 test by @kjarosh in ruffle-rs/ruffle#23965

## New Contributors

* @doctorpangloss made their first contribution in ruffle-rs/ruffle#23817

**Full Changelog**: ruffle-rs/ruffle@v0.2.0...v0.3.0,

---------------------------------------------------------------------------------------
thextech.mk db3a01db31435fc4524bb42ab81d99b3f6aa0807 # Version: Commits on Jun 14, 2026
---------------------------------------------------------------------------------------
changelog.txt: move MDX to 1.3.7.3 changelog,

-------------------------------------------------------------------------------------------
jazz2-native.mk a09fd6b6e54c42c9e5c622704b14a6ae32e06d1c # Version: Commits on Jun 13, 2026
-------------------------------------------------------------------------------------------
Tilemap draw call aggregation, improved player color customization,

-----------------------------------------------------
ledspicer.mk 0.7.6 # Version: Commits on Jun 14, 2026
-----------------------------------------------------
LEDSpicer v0.7.6 - Release Notes

Release Date

June 14, 2026

Overview

This release focuses on critical stability improvements and bug fixes for crafted profile handling and memory management.

� Bug Fixes

Crafted Profile System

    Fixed use-after-free crash when loading the same crafted profile twice

    Improved profile caching - Crafted profiles are now properly cached by game name instead of being rebuilt on every request

    Fixed profile stack history - FinishLastProfile now correctly steps back one profile at a time through the history stack

Flag Handling

    Corrected FORCE_RELOAD flag - Profile reload now properly ignores cache and rebuilds in place

    Corrected REPLACE flag - Profile replacement logic now works correctly on the craft/load path

� Changes

Configuration Updates

    Configuration values now use proper boolean capitalization (True/False instead of true/false)

    Enhanced configuration defaults in ledspicer.conf

Code Quality

    Refactored profile management to eliminate redundant cache operations

    Improved memory management with proper reference counting for replaced profiles

    Enhanced logging for better debugging of profile lifecycle

Documentation & Branding

    Updated README with improved project description and branding

    Enhanced feature list and typical use cases documentation

    Updated copyright year to 2026

CI/CD

    Updated GitHub Actions checkout action from v4 to v6

Package Updates

    Updated version across all package managers (Debian, RPM, Arch)

🔧 Technical Details

    Changed default platform parameter handling in craftProfile()

    Introduced replaceProfileReferences() for cleaner memory management

    Optimized cache key handling for platform templates vs. crafted profiles

----------------------------------------------------------------------------------------
retroarch.mk 2669eaad7b4318c415028e3d2feaf9d7f092885e # Version: Commits on Jun 14, 2026
----------------------------------------------------------------------------------------
Fetch translations from Crowdin,

----------------------------------------------------------------------------------------
doomretro.mk e011e4abf085fbbf5d7c9ba862bab40f48543bed # Version: Commits on Jun 14, 2026
----------------------------------------------------------------------------------------
Fix double use of uppercase(),

--------------------------------------------------------------------------------------
yquake2.mk dcda9144d34a5d76ff462675ff05d8acde30ecfe # Version: Commits on Jun 13, 2026
--------------------------------------------------------------------------------------
models: fix MDR uncompressed-frame heap overflow from byte/float count mix-up,

------------------------------------------------------------------------------------------
xash3d-fwgs.mk 1e31fbcd513bdabd557a098fcdd06fa2037cd99e # Version: Commits on Jun 14, 2026
------------------------------------------------------------------------------------------
ref: shut up DecalShoot about decals must hit mod_brush

This is an annoying message that's caused by the game code. Decals, without

custom renderer, cannot be rendered on non-brush entities, and everybody knows

that anyway.,

-------------------------------------------------------------------------------------------------------
libretro-beetle-pce-fast.mk 718dd0abb9ffcd95308ae79594e86d15148d7a2f # Version: Commits on Jun 14, 2026
-------------------------------------------------------------------------------------------------------
libretro: add zero-copy software-framebuffer direct render path

Use RETRO_ENVIRONMENT_GET_CURRENT_SOFTWARE_FRAMEBUFFER so the VDC can

render straight into the frontend's (often GPU-mapped) framebuffer,

removing the surface->frontend copy that video_cb otherwise performs.

The renderer already writes through a single MDFN_Surface target whose

pixels/pitch it dereferences at render time (target = surface->pixels +

(frame_counter-14)*surface->pitch, all Mix*/Draw* honour surface->pitch),

so the direct path needs no renderer changes: in retro_run, before

Emulate, request a framebuffer; if granted, repoint surf->pixels/pitch at

it for the frame, render, ship video_cb from there with the framebuffer's

pitch, then restore the persistent fallback surface.

Why this is safe:

- The VDC renderer is write-only on the target surface (verified: every

  reference is a store), so an uncached framebuffer (no

  RETRO_MEMORY_TYPE_CACHED) is fine; access_flags is WRITE only.

- We do NOT rely on persistent buffer contents: for every scanline in the

  shipped rect [DisplayRect.y, +h) the renderer writes the whole line

  (Mix + DrawOverscan sides, or a full DrawOverscan in burst/blank), so a

  frontend that rotates buffers per frame yields no garbage.

- Only used when the granted buffer is RGB565 (our native output), large

  enough (>= FB_WIDTH x FB_HEIGHT), and has an even byte pitch; otherwise

  the calloc'd fallback surface is used unchanged.

- Frameskip frames don't request a buffer (video_cb(NULL,...) as before).

- If the frontend doesn't implement the call, the result is latched off

  (fb_direct_supported) so we probe only once.

surf->pixels/pitch are always restored after the frame, so the fallback

surface is intact whenever a frame declines the framebuffer. Pitch is

taken from the framebuffer (bytes -> uint16), not assumed to be FB_WIDTH.

(The old psp_hw_render branch rendered its SW path into its own surface

and used the PSP GU for HW; it predates this env call, so there was no

code to port - only the confirmation that the renderer funnels through

one retargetable surface pointer, which makes this drop-in.)

Verified: full clean build (make -j4, exit 0, .so, 0 warnings); libretro.c

passes -std=gnu89 -Werror=declaration-after-statement.,

--------------------------------------------------------------------------------------------------
libretro-beetle-psx.mk d460f8342060526678e7fd8222048324c2a80d86 # Version: Commits on Jun 14, 2026
--------------------------------------------------------------------------------------------------
gpu: SSE2-direct Gouraud RGB lane build in DrawSpanVec_NT (no stack roundtrip)

Replaces the scalar-loop-then-_mm_loadu_si128 Gouraud channel build with

direct SSE2 lane construction.  The original

    for (l = 0; l < step; l++) {

        R8[l] = (uint16_t)CHAN(cr, dr, l);

        G8[l] = (uint16_t)CHAN(cg, dg, l);

        B8[l] = (uint16_t)CHAN(cb, db, l);

    }

    R = _mm_loadu_si128((const __m128i*)R8);  /* + G, B */

lowered under gcc 13 -O3 to per-lane leal (cr + dr*l) into GPRs, store

to stack at R8[l], movd back to xmm, punpck-chains.  This shape was the

dominant spill source in the GOURAUD-on (G1) non-textured (T0) hot

loops -- in the unpatched gpu.s, the .L31928 family contained loops

with 97-116 xmm operations and 38-39 stack writes each, across every

T0 + (BMopaque | BMavg | BMaddq | BMadd) blend specialization.

The contributing mechanism: the per-lane GPR live ranges produced by

the scalar loop straddle the dense SIMD blend body that follows, so

the register allocator chooses to materialize each lane's GPR result

on the stack before reloading into xmm.  Replacing the loop with

straight SSE2 ops (vbase broadcast + step vectors + paddd + psrld +

packssdw) keeps the channel intermediates xmm-resident across the

entire blend body.

Approach: lane l holds ((base + d*l) >> 24).  d2..d7 are produced via

paired adds (cheaper than the imuls gcc would pick for d * l, and the

32-bit lanes have plenty of headroom -- worst-case dr*7 has fewer than

25 bits given the Gouraud range).  After the >> 24 shift each lane is

<= 255, so the final packs_epi32 down to u16x8 cannot saturate.

setr_epi32 calls fold to a single mov-from-rodata when dr/dg/db are

constant per span (the common case at the polygon level), and to a

small insert chain otherwise.

Spill counts (gcc 13.3, -O3, x86_64):

  function                                          before     after

  G_Command_DrawPolygon_NV4_G1_T0_BMopaque*         spills=39  spills=0

  G_Command_DrawPolygon_NV4_G1_T0_BMavg*            spills=39  spills=0

  G_Command_DrawPolygon_NV4_G1_T0_BMaddq*           spills=39  spills=0

  G_Command_DrawPolygon_NV4_G1_T0_BMadd*            spills=39  spills=0

  G_Command_DrawPolygon_NV4_G1_T0_BMsub*            spills=39  spills=0

The remaining spill leaders shift to the T1 (textured) variants at

xmm=16 spills=28-30; those follow the same scalar-then-pack pattern

on UV coordinates and are a separate follow-up.

End-to-end bench (x86_64 Linux, gcc 13.3, full DrawSpanVec_NT

BMopaque path -- Gouraud build + dither-off + pack RGB565 + bg load +

write-back, 100000 spans x 320 pixels):

  -O3:  21.0 -> 14.8 ms   (1.42x)   1520 -> 2165 Mpix/s

  -O2:  21.9 -> 15.8 ms   (1.39x)   1455 -> 2028 Mpix/s

Bit-exact across 500000 random Gouraud lane verifications (dr range

10..24 bits, both step=4 and step=8, plus edge cases at dr=0 and

dr=0xFFFFFFFF) and 200 random spans rendered into VRAM.

The NEON / scalar path is unchanged.  On NEON, the original

`vld1q_u16(R8)` plus per-lane access via vget_lane_u8 lowers to direct

register extracts without the stack roundtrip the SSE2 path saw, so

the same gcc lowering bug doesn't apply.  ARMv7 NEON specifically may

need its own audit but the codegen on AArch64 doesn't show comparable

spill density.,

----------------------------------------------------------------------------------------------
libretro-fake08.mk 814991a2571ad3970e386cef48f3b148aa1c27b9 # Version: Commits on Jun 13, 2026
----------------------------------------------------------------------------------------------
Merge pull request #267 from ysamlan/fix-vibrato-modulation

Fix vibrato effect: correct sawtooth to triangle wave modulation,

------------------------------------------------------------------------------------------------
libretro-gambatte.mk e99e1bd9b91de67ac12c77c3679c85447c26e8c8 # Version: Commits on Jun 14, 2026
------------------------------------------------------------------------------------------------
ppu: extend BG palette expansion to the CGB fast path

Follow-up to a991736 (\ppu: precomputed BG palette expansion for DMG

fast path\).  That commit treated only doFullTilesUnrolledDmg; the

CGB renderer at doFullTilesUnrolledCgb had the same eight-dependent-

load gather shape but with per-tile palette selection driven by the

attribute byte (bgPalette + (nattrib & 7) * 4) and was deferred

pending an L1-pressure measurement against the [8][256][4] table.

Microbench result: the working set was a non-issue.  Even with all 8

palettes cycling per tile (worst case -- every attribute byte

different), the 32 KiB total table is L1-friendly because the access

pattern (16 bytes per palette per tile) hits the same line repeatedly

within a tile.  Typical CGB scenes use only a few palettes per frame,

making the hot working set much smaller than the full table.

Microbench (full do-while incl. ntileword and nattrib recompute,

5000 frames x 144 lines x 20 tiles, x86_64 gcc 13.3 -O3):

  Scenario A: 1 palette used (typical):

    old: 53.0 ms (272 Mtiles/s) -> new: 27.5 ms (523 Mtiles/s)  1.93x

  Scenario B: 8 palettes cycling (worst-case for L1):

    old: 53.0 ms (272 Mtiles/s) -> new: 27.2 ms (529 Mtiles/s)  1.95x

Bit-exact across 50000 random trials.

Implementation:

  - bgPaletteExpanded changes shape from [256][4] to [8][256][4].

    Size goes from 4 KiB to 32 KiB (u32 build) / from 2 KiB to 16 KiB

    (VIDEO_RGB565 / VIDEO_ABGR1555 build).  The DMG renderer indexes

    the [0] slot; the CGB renderer indexes [nattrib & 7].

  - refreshBgPaletteExpansion gains a unsigned palette_id argument.

    DMG-mode callers pass 0; the CGB hooks pass the slot affected by

    the BCPD write (index >> 3).  Refreshing one palette costs 256

    iterations of the 4-lane inner expansion -- about 1024 stores --

    so per-palette refresh keeps writes proportional to the work the

    palette change actually invalidated.

  - refreshPalettes (the bulk-reload path used by loadState,

    swapToDMG, the colour-correction setters) rebuilds all 8 slots in

    CGB mode and just slot 0 in DMG mode.  doCgbBgColorChange (the

    one-entry-at-a-time BCPD path) rebuilds the affected slot.

    dmgBgPaletteChange (BGP register) rebuilds slot 0.  These are

    the only paths that write ppu.bgPalette in the codebase.

Codegen (gcc 13.3 -O3, x86_64): both inner loops now have the same

shape -- the do-while body lowers to four movdqu pairs per unrolled

iteration (gcc unrolls by 2, processing 16 pixels per loop body),

plus the nattrib/ntileword recompute scalar tail.

The CGB path's 32 KiB worst case is still smaller than every modern

L1d (x86 32-48 KiB, ARM Cortex-A53/A72 32 KiB), and the typical hot

working set is one or two 4 KiB slots.,

--------------------------------------------------------------------------------------------------
libretro-gearcoleco.mk e6c987725eb2ac6dc0edc85b0dea30fdc7e938d7 # Version: Commits on Jun 14, 2026
--------------------------------------------------------------------------------------------------
Update readme,

-------------------------------------------------------------------------------------------------
libretro-geargrafx.mk 31e8fb7d94e4e4b723790fbd19a02760df5ac816 # Version: Commits on Jun 14, 2026
-------------------------------------------------------------------------------------------------
Update readme,

--------------------------------------------------------------------------------------------------
libretro-gearsystem.mk a4f2cf7fdcb946ca3d150206c1b3e426fabd59c1 # Version: Commits on Jun 14, 2026
--------------------------------------------------------------------------------------------------
Update readme,

---------------------------------------------------------------------------------------------
libretro-opera.mk 64f35570aad94992f1122a810af6cc932862505a # Version: Commits on Jun 14, 2026
---------------------------------------------------------------------------------------------
MADAM: ignore bottom 2 bits in CCB processing

The bottom two bits of the address bus aren't even wired up to

MADAM. Most titles use properly aligned addresses but not all. This

patch ensures the pointers read from the CCB and the CCB address

itself are masked to align them to word boundry.

Fixes Ballz and possibly other titles that had unaligned addresses.,

----------------------------------------------------------------------------------------------------
libretro-parallel-n64.mk 2eff7ef440c8411d6b8670ea32d9b5a40492db12 # Version: Commits on Jun 13, 2026
----------------------------------------------------------------------------------------------------
libretro: only auto-force HLE graphics when the RSP plugin is on auto

The core forced the GFX task through the HLE emitter whenever the active

video plugin was not the one paired with the build's native low-level

path (angrylion for the threaded software build, parallel for the Vulkan

build). That override ran unconditionally, so selecting the cxd4 RSP

explicitly while using a different video plugin silently executed the

HLE display-list emitter instead of the requested low-level microcode,

contradicting the user's choice and making the two paths impossible to

compare. Gate the override on the RSP plugin being left on \auto\: an

explicit cxd4 or parallel selection is now honoured as low-level, while

auto keeps the previous convenience fallback.,

----------------------------------------------------------------------------------------------
libretro-ppsspp.mk 14dc5a51560628581c023235e9d35ec28fb14b6a # Version: Commits on Jun 14, 2026
----------------------------------------------------------------------------------------------
Merge pull request #21825 from hrydgard/ridge-racer-sprite

Fix the ugly line on Ridge Racer lens flares,

----------------------------------------------------------------------------------------------
libretro-prboom.mk 84cd28bd2d58bbfc8a2e48997862fefcac132c6e # Version: Commits on Jun 14, 2026
----------------------------------------------------------------------------------------------
Revert the above-eye 3D-floor water chain (translucent ceiling approach)

This reverts the four-commit chain that drew a swimmable water surface seen

across an opening from below it:

  1ae278f draw above-eye 3D-floor water as a translucent ceiling plane

  bb17de3 tint the submerged volume for above-eye 3D-floor water

  554a06b blend 3D-floor water at the map's alpha instead of fixed 50/50

  4327cc2 give 3D-floor water a solid colour when its flat is a bare marker

The approach is structurally wrong and cannot be salvaged by tuning.  It draws

the water as a single flat screen-space translucent span.  But the far wall of

the flooded room spans from its floor (~z -16) to its ceiling (z 448) within one

screen column, and only the part below the surface (z 138) is underwater.  A

flat span cannot express 'underwater up to the waterline, air above it' when the

far geometry crosses the surface mid-column, so the tint covers far above the

real water line regardless of clamp direction or alpha.  The result reads as a

blue sheet hung over the top of the opening, not a water surface -- visibly

worse than drawing nothing.

Correct 3D-floor water needs the surface clipped as a true horizontal plane

against the per-column far geometry (a real waterline), which is a substantial

renderer feature, not a span tweak.  Reverting until that exists rather than

shipping a broken effect.  Restores the exact pre-chain state (bb842a3); vanilla

demo hash unchanged (ab8eb93a72c8a66b).,

-------------------------------------------------------------------------------------------
libretro-ps2.mk 9b74364f0111b2159a47b8a3b12adbb2e255604f # Version: Commits on Jun 14, 2026
-------------------------------------------------------------------------------------------
common/GS: load and run on Windows 8 by resolving placeholder APIs at runtime

The fastmem area (HostSys.cpp) and the GS local-memory mirror (GS.cpp)

called VirtualAlloc2 / MapViewOfFile3 / UnmapViewOfFile2 directly.

These are Windows 10 1803+ exports, so as ordinary imports they land

in the DLL's import table and the loader cannot resolve the module on

Windows 8 / 8.1 - the whole core fails to load before any code runs,

even though both subsystems can operate without those APIs.

Resolve the three placeholder APIs once via GetProcAddress from

kernelbase.dll (added as PCSX2_HasPlaceholderAPIs in RedtapeWindows.h)

so they stay out of the import table, and branch on availability:

- HostSys fastmem: if the APIs are missing, Create() returns null and

  vtlb_Core_Alloc falls back to no-fastmem mode (the same path already

  taken when a 4 GB region can't be placed). Map()/Unmap() call through

  the resolved pointers, which are guaranteed present because the area

  only exists when Create() found all three.

- GS wrapped memory: GSLocalMemory cannot tolerate a null mapping (it

  memsets the buffer immediately), so a Win8 fallback is provided that

  reserves a contiguous repeat*size hole, releases it, and maps the

  file view into each slot with MapViewOfFileEx (available since

  Windows 2000). A flag records which path was used so the matching

  teardown runs in GSFreeWrappedMemory.

On Windows 10+ the resolver finds all three APIs on first use and the

existing placeholder workflow runs exactly as before - only the

otherwise-unreachable absence path is new - so behavior there is

unchanged. No effect on non-Windows builds.

NOTE: unverified on a real Windows toolchain. The added code was

compile-checked against a Windows target with MinGW (typedefs, call

shapes and control flow), but the full core was not built and this has

not been run on Windows 8 or Windows 10. Needs a Win10 SDK build and a

runtime check on both before merging.,

---------------------------------------------------------------------------------------------------
libretro-snes9x-next.mk 305ab6f1ab2c8dd03a70659a43001ec39bf9ac23 # Version: Commits on Jun 14, 2026
---------------------------------------------------------------------------------------------------
tile: register-only palette gather in TILE_ROW_PRE_SSE2 (no stack roundtrip)

Replaces the storel-to-stack + 8 byte-loads + align-load palette gather

with pextrw to GPR + pinsrw straight back into xmm.  Touches the central

TILE_ROW_PRE_SSE2 macro (six callers across the math-variant n1x1

helpers) and the open-coded SSE2 path in tile_draw_row_nomath_n1x1.

Found via autovec-aware codegen audit: gcc 13 -O3 lowers

    _mm_storel_epi64((__m128i *)pix_buf, pix);

    col_buf[0] = palette[pix_buf[0]];

    ... [eight byte indices] ...

    col_buf[7] = palette[pix_buf[7]];

into SEVEN redundant 16-byte stack stores of `pix` plus eight movzbl

loads at distinct offsets.  SLP analysis treats each byte-load as

needing its own non-aliasing copy of the source vector, so the spill

multiplier is one-store-per-byte-load.  Reading the indices through

pextrw goes register-only, and pinsrw places the gathered colors

directly in xmm so the subsequent mask/blend uses no scratchpad either.

Spill counts in the generated assembly (gcc 13.3 -O3 -msse2):

  function                          before        after

  DrawTile16_Normal1x1              spills=14     spills=0

  DrawTile16Add_Normal1x1           spills=15     spills=0

  DrawTile16Sub_Normal1x1           spills=14     spills=0

  DrawTile16SubF1_2_Normal1x1       spills=14     spills=0

The max-spill loop in tile.c (.L20167, xmm=94 spills=15) is gone; the

worst residual loop now has 7 spills, mean dropped from ~14 to ~3.

Microbench (x86_64 Linux, gcc 13.3, full per-row helper -- mask, db,

gather, store):

  -O3:  150.3 -> 137.4 ms   (1.094x speedup)  213 -> 233 Mrows/s

  -O2:  149.6 -> 137.1 ms   (1.091x speedup)  214 -> 234 Mrows/s

Bit-exact against the scalar reference over 200000 random trials,

and across 4000 row calls in the bench harness.

PIX_BUF / COL_BUF stay on the macro parameter list so the six callers

compile unchanged; the unused stack arrays are DCE'd at -O2/-O3.  The

parallel NEON path (TILE_ROW_PRE_NEON, NEON branch of

tile_draw_row_nomath_n1x1) is unchanged -- on NEON, vget_lane_u8

extracts directly into a GPR without a stack roundtrip, so the same

gcc lowering bug doesn't apply; a NEON-side audit can come separately.,

----------------------------------------------------------------------------------------------
libretro-stella.mk 6fcd49280bf923e171cfe87183d97ec20ce2fc99 # Version: Commits on Jun 13, 2026
----------------------------------------------------------------------------------------------
added cassette icons for MP3/WAV files,

---------------------------------------------------------------------------------------------------
libretro-swanstation.mk 93b213d805591c4f1488339c4a16f0b4cb68d44a # Version: Commits on Jun 14, 2026
---------------------------------------------------------------------------------------------------
gpu_sw: SSE2/NEON kernels for CopyOutRow16<RGBA8> and <BGRA8>

The two desktop-output specialisations of CopyOutRow16 -- RGBA8 and

BGRA8, used whenever the host display path is a 32bpp framebuffer

(the common case on Windows/Linux/macOS GL/Vulkan backends) -- were

the only ones left without a SIMD kernel.  The RGBA5551 and RGB565

variants for mobile/GLES targets already had SSE2 and NEON paths.

Each 16-bit MASB1555 source pixel expands to a 32-bit ARGB pixel

with the same per-channel scaling pattern as the existing kernels

(<<3 on each 5-bit channel; bit 15 expanded to 0x00/0xFF for RGBA,

hard-coded to 0xFF for BGRA, matching the scalar VRAM16ToOutput

specialisations bit for bit).

The kernels process 8 pixels per iteration:

  r8 = (v & 0x1F)         << 3

  g8 = ((v >> 5) & 0x1F)  << 3

  b8 = ((v >> 10) & 0x1F) << 3

  a_hi = (v >>arith 15)   << 8     // 0xFF00 if STP bit set else 0

  pair_lo = r8 | (g8 << 8)         // R in low byte, G in high

  pair_hi = b8 | a_hi              // B in low byte, A in high

  store unpacklo(pair_lo, pair_hi)

  store unpackhi(pair_lo, pair_hi)

The 16-lane interleave on SSE2 (punpcklwd/punpckhwd) produces u32

lanes in little-endian R|G|B|A order, which is the RGBA8 byte

layout.  BGRA8 just swaps the channel pairing (B|G in pair_lo,

R|A in pair_hi) and uses a constant alpha vector since BGRA8's

VRAM16ToOutput hard-codes alpha = 0xFF.

The NEON path uses vst2q_u16 to do the same interleave: storing

{r|g, b|a} produces the [r|g, b|a, r|g, b|a, ...] u16 sequence

which reads as [R|G|B|A, R|G|B|A, ...] in u32.

Tail pixels (width % 8) keep the scalar VRAM16ToOutput call exactly

as the RGBA5551 and RGB565 kernels do.

Microbench (x86_64 Linux, gcc 13.3, full 640-pixel row, 500K iters):

  RGBA8:

    -O3: 148 -> 75 ms  (1.97x)   2161 -> 4247 Mpix/s

    -O2: 351 -> 74 ms  (4.74x)    911 -> 4317 Mpix/s

  BGRA8:

    -O3: 119 -> 66 ms  (1.80x)   2683 -> 4827 Mpix/s

    -O2: 299 -> 64 ms  (4.68x)   1070 -> 5004 Mpix/s

Bit-exact across 33000 trials over widths 0..32 (exercising the

scalar tail at every remainder), input pixels drawn from the full

65536 u16 range.,

------------------------------------------------------------------------------------------------
libretro-tyrquake.mk 5e10328faf30161923fa0f918792fbeb7772ef5b # Version: Commits on Jun 14, 2026
------------------------------------------------------------------------------------------------
r_aclip: batch clipped fan into a single D_PolysetDraw dispatch

R_AliasClipTriangle clips an alias triangle against the frustum

planes via Sutherland-Hodgman, producing a polygon of up to 7

vertices, then triangulates it as a fan around vertex 0.  The

old code emitted one D_PolysetDraw call per fan triangle, with

the source carrying a 'FIXME: do all at once as trifan?' note

above the loop.

All fan triangles already share the same pfinalverts buffer

(R_AliasClipTriangle's stack-local fv[pingpong]) and the same

facesfront flag (inherited from the input triangle), so batching

is mechanical: build a mtriangle_t array on the stack with

vertindex[0..2] = (0, t+1, t+2) for t in [0, k-3], set

numtriangles = k - 2, and dispatch once.

mtri_fan[5] covers the worst-case fan size: a 3-vertex triangle

clipped against 4 frustum planes (left, right, top, bottom) grows

to at most 3 + 4 = 7 vertices, yielding a 5-triangle fan.  Z-clip

is handled separately upstream and never inflates the polygon

past the per-plane growth of the XY clips.

Performance impact on the SW path is modest (per-call D_PolysetDraw

overhead is small after the static-spans change in the previous

commit), but the structural change matters for two reasons.  First,

the GPU compute path in D_PolysetDraw (Phase 5b-06: the

g_rhi->dispatch_3d_alias short-circuit) is dispatch-heavy -- one

GPU submit per fan triangle on a partially-clipped entity is

exactly what the unclipped batching in R_AliasPreparePoints

(commit message at r_alias.c:477) was written to avoid.  Bringing

the clipped path under the same batching treatment closes the

remaining per-triangle-dispatch hole.  Second, the loop is now

straight-line code with no global-state mutation inside the body

(no per-iter writes to r_affinetridesc.ptriangles or to a shared

mtri scratch), which simplifies reasoning about the rasterizer's

preconditions when reading this code.

Bit-identical output: the fan triangles are generated in the

same order ((0,1,2), (0,2,3), (0,3,4), ...) and consumed by

D_DrawNonSubdiv / D_DrawSubdiv in the same order (their inner

loops iterate 0..numtriangles-1 with the same per-tri math),

so the resulting pixel emissions are unchanged.

Builds clean on x86_64, aarch64, and armv7 NEON crosses.,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-other Area: Not covered by other area labels T-chore Type: Chore (like updating a dependency, it's gotta be done)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants