Commit Graph

607 Commits

Author SHA1 Message Date
Jasper St. Pierre 9f22f27909 fixes and cleanups for j3d material 2026-04-12 20:14:24 -07:00
Lurs 6b3728c5ab Let's replace the hack through a hack? Should fix the double swapping of #208 (and maybe more) 2026-04-12 22:39:05 +02:00
Irastris d481a23c49 Frame interp: Refactor JUTFader
Now works regardless of interpolation being on/off
2026-04-12 13:56:00 -04:00
Luke Street 3c281cc988 BE swap J3DMaterialFactory::newIndTexMtx/newFog 2026-04-11 20:13:39 -06:00
Luke Street aafd50cd09 Use Limiter class in waitForTick (#330)
This uses the existing `Limiter` class (stolen from Metaforce) in `JFWDisplay::waitForTick`.
The limiter also now uses `SDL_DelayPrecise` internally on non-Windows platforms.
On Windows, the existing `NanoSleep` logic is untouched, as it appears to provide a
more stable framerate for the folks testing it on Windows than `SDL_DelayPrecise` does.
On Linux, however, `SDL_DelayPrecise` is plenty accurate.
2026-04-11 17:50:52 -06:00
PJB3005 14e77aed9c Fix JUTResFont duplicating texture data
I misunderstood the way this code works the first time.
2026-04-11 21:46:14 +02:00
PJB3005 fe46adf3cb Merge branch 'main' into 26-04-11-render-opts 2026-04-11 20:36:46 +02:00
PJB3005 9704f32411 Merge remote-tracking branch 'decomp/main' 2026-04-11 19:59:09 +02:00
Pieter-Jan Briers a0e12c36e7 UB fixes (#3150)
* Fix incorrect size for J2DTevBlock8::insertTexture local_38

* Fix dMeter_drawOptionHIO_c mOptionTypeBGPosX/Y size

* dMeter_drawLightDropHIO_c mVesselAlpha fix

* d_a_mg_rod array size fixes

* Fix e_tk2_class mActionTimer array size

* daObjTOMBO_c field_0x714 array size fix
2026-04-11 11:28:01 -06:00
PJB3005 cffb4b2400 Make J2DPictureEx not draw if zero alpha
Reduces the amount of draw calls from inactive UI elements by a lot.
2026-04-11 16:13:45 +02:00
PJB3005 bcf7b4ca85 Bunch of debug/tracy groups for J2D 2026-04-11 16:11:41 +02:00
Irastris fb9178cac9 Implement unlocked framerates via interpolation (#315)
* Disable waitForTick and waitBlanking

* Initial frame interpolation implementation

* Initial batch of speed fixes

* Fix Iron Boots

* Strip dead code once used for debugging

* Interpolate shadows

* Revert overzealous/redundant lookups

* Fix JUTFader

* Fix field map cursor

* Fix various particle effects

* Fix Midna when riding Wolf Link

* Fix title logo

* Title Logo 2: Electric Boogaloo

* Fixed grass and flowers

* "Unlock Framerate" config option (WIP)

* Wrap more things in TARGET_PC

* Finish wrapping things in TARGET_PC

* Missed one

* Disable dComIfGd_drawXluListInvisible when interpolating

---------

Co-authored-by: Luke Street <luke@street.dev>
2026-04-11 01:06:25 -06:00
Pieter-Jan Briers 422ed7afc3 Couple sizeof(CMemBlock)s (#3143) 2026-04-10 23:42:00 -07:00
qwertyquerty 3366c22e99 CI/CD, CMake improvements, more targets, fix gcc (#258)
* CI attempt

* syntax

* fix cmake for linux

* fix include directories and merge main

* fix PDB fighting

* fix gcc compiling

* fix SSCACHE for windows

* try and fix gcc

* more CI presets

* remove the android target for now

* bump cmake minimum to fix debug information format

* yet another attempt at fixing gcc

* yet another attempt at fixing gcc

* better CI matrixing

* yet another attempt at fixing GCC

* fix arm

* fix CI

* placeholder icons

* compile dawn from source for windows arm64

* fix icons and linker warnings

* fix cmake

* fetch libjpegturbo

---------

Co-authored-by: Luke Street <luke@street.dev>
2026-04-09 19:22:53 -06:00
TakaRikka 3d79a3d600 Merge pull request #296 from TwilitRealm/26-04-07-tracy
Add Tracy stuff
2026-04-09 16:05:46 -07:00
TakaRikka 5ae4215e7d Merge pull request #295 from TwilitRealm/26-04-09-jkrdecomp
Fix JKRDecomp crash I caused
2026-04-09 14:26:15 -07:00
PJB3005 4ad00e3f04 Make waitForTick properly sleep
It was spinwaiting 💀
2026-04-09 18:58:44 +02:00
PJB3005 3bcd46dc30 Add Tracy stuff 2026-04-09 18:47:34 +02:00
PJB3005 9d3877e448 Fix JKRDecomp crash I caused
By changing more things :sloggers:
2026-04-09 18:41:27 +02:00
madeline 4ed0909085 optimize dsp by 27X 2026-04-09 08:25:06 -07:00
Jeffrey Crowell a94fa51c80 Fix Crash at the end of the Armogohma cutscene #282
zero stack buffers in JASSeqParser::cmdPrintf on PC builds

use AVOID_UB instead of TARGET_PC
2026-04-08 15:39:42 -04:00
madeline c2c5107561 add p1 == 0 logic 2026-04-07 22:15:19 -07:00
madeline 85bebac4ec frame usage debug info 2026-04-07 22:11:50 -07:00
PJB3005 74942f3c76 Fix JUTResFont performance
Just store the GXTexObjs in a separately allocated hashmap, so they can be persisted cross-frame. Easy.

Fixes #227
2026-04-07 21:43:38 +02:00
PJB3005 63ade15e2c Cleanly shut down JKRDecomp thread
Properly join the thread to ensure it's shut down before we try to exit.

Fixes #268
2026-04-07 20:06:52 +02:00
madeline f489cc2786 Merge branch 'main' of https://github.com/TakaRikka/dusk 2026-04-06 20:36:01 -07:00
madeline 4e12f7bb95 fix basically all known audio bugs fixes #148 fixes #146 fixes #130 2026-04-06 20:35:54 -07:00
Luke Street 8fac510140 Update aurora & fixes for OS header changes 2026-04-06 21:25:50 -06:00
Lurs 4f28c4ed10 double heaps to fix Midna's eye (#106) and various other error messages I got.
Also updating aurora.
2026-04-06 21:18:28 +02:00
madeline 3d5f2474bf turbo keybind tool 2026-04-05 11:47:49 -07:00
madeline 6857c54695 fix .clangd on vscode 2026-04-04 22:22:18 -07:00
TakaRikka 67bd14bfd8 Merge pull request #215 from TwilitRealm/reverb-wip
Audio FX reverb proof of concept
2026-04-04 21:38:01 -07:00
madeline f5ce58ca7f reverb proof of concept 2026-04-04 01:38:28 -07:00
Max Roncace 932123bedb Fix compile error in J3DMaterialFactory_v21 2026-04-04 01:41:04 -04:00
Max Roncace 479d444066 Fix a couple more BE issues in J3DMaterialFactory_v21 2026-04-04 01:36:16 -04:00
madeline c869320471 Merge branch 'main' of https://github.com/TakaRikka/dusk 2026-04-03 22:33:41 -07:00
madeline 350e99e8ab fix getDopplerPower fixes #213 2026-04-03 22:33:38 -07:00
Max Roncace 5bb36dfb20 Fix crashes when entering Henna's shop 2026-04-04 01:30:24 -04:00
Luke Street e9b96bdd21 Add JKRThread::Run return value 2026-04-01 21:01:59 -06:00
Luke Street 7642d72a52 Allow threads to gracefully shutdown 2026-04-01 18:30:12 -06:00
Pieter-Jan Briers 6730d0c952 Merge branch 'main' into 26-03-28-movie-player 2026-04-01 15:15:08 +02:00
PJB3005 9e298f9228 Expand heap debug ImGui
Now allows seeing all blocks in ExpHeaps and running heap integrity checks.
2026-03-31 21:18:25 +02:00
PJB3005 094d43c84f Heap allocation failure logs free blocks, always crashes even without DEBUG 2026-03-31 21:13:13 +02:00
PJB3005 d24d78f354 Fix heap corruption caused by JKRExpHeap::do_freeAll
Caused by a size that should've been sizeof(CMemBlock).

Simple way to repro was to open and close the full map on dpad, afterwards heap check would fail.
2026-03-31 21:11:19 +02:00
TakaRikka e912403918 Merge pull request #165 from TakaRikka/26-03-31-suspicious-assert
Disable suspicious assert causing cutscene crashes
2026-03-31 03:53:09 -07:00
Lurs c1e905ee74 Minimap fixes (needs change for intensityI8 in aurora) and some other BE fixes 2026-03-31 11:38:59 +02:00
TakaRikka 487c9b030e remove unneeded ospanic 2026-03-31 01:08:11 -07:00
Luke Street 2ce83d3026 Update GXSetArray usages (fixes & le arg) 2026-03-31 01:06:36 -06:00
PJB3005 0245ebf9b3 Disable suspicious assert causing cutscene crashes
From my reading of the code this assert is likely incorrect. This throws on cases where usize has a sane-looking value (the length of the pContent null-terminated string), and from my understanding of how the data is parsed, this length is needed to figure out the location of the next "paragraph".
2026-03-31 04:36:33 +02:00
PJB3005 01e88fbd85 Fix JUTGamePad stopPatternedRumbleAtThePeriod division by zero
Happens for me when loading a save in Death Mountain Twilight. Confirmed in Dolphin with the same save file.

PowerPC does not raise an exception on division by zero, so I assume this is an original game "bug"
2026-03-31 01:12:45 +02:00